Ron,

just to clarify, old 1400 bytes was not a buffer size, rather a chunk size
telling how many bytes read/write from/to a socket in a single operation, as
you can see, old code has loops which read/write until a timeout and/or
requested size is matched or exceeded.

Best regards.

Maurilio.

Ron Pinkas wrote:
> Maurilio, Miguel,
> 
> <<<
>> 1. Indeed we should not ASSUME any size, we should either:
>>
>>       - Find if there's a way to QUERY, what's the O/S buffer size.
>>
> yes, there is, it is getsockopt(), which can tell you how big are OS
> default
> buffers.
>>>>
> 
> Miguel, please correct core implementation to use default O/S buffer
> size, as reported by getsocketopt(), instead of the older hardcoded 1400
> bytes, or new 64KB. Then add to TFTP:
> 
>    #define FTP_SEND_BLOCKSIZE ...
>    #define FTP_RCV_BLOCKSIZE ...
>    ...
>    InetSetSndBufSize( pSocket, FTP_SEND_BLOCKSIZE )
>    InetSetRcvBufSize( pSocket, FTP_RCV_BLOCKSIZE )
> 
> Ron
> 
> 
> 

-- 
 __________
|  |  | |__| Maurilio Longo
|_|_|_|____| farmaconsult s.r.l.



-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
xHarbour-developers mailing list
xHarbour-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xharbour-developers

Reply via email to