On Mon, 3 Dec 2001, Louis Solomon [SteelBytes] wrote:

> As far as I can see, the current code uses the default socket buffer
> sizes, which in my experience kills data throughput in most cases.
>
> try adding some thing like the following into
> SysDepWin.cpp::SysSendFile()
>     int snd_buf_size = 64*1024;
>     int rcv_buf_size = 4*1024;
>     setsockopt(SockFD,SOL_SOCKET,SO_SNDBUF,(char
> *)&snd_buf_size,sizeof(snd_buf_size));
>     setsockopt(SockFD,SOL_SOCKET,SO_RCVBUF,(char
> *)&rcv_buf_size,sizeof(rcv_buf_size));

SysSendFile() is not used when receiving data.
You should set buffer sizes by default and having 70Kb for each socket is
a bit excessive to solve a corner case.



- Davide


-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]

Reply via email to