On Mon, 30 Jun 2008, Lorenzo Fiorini wrote: Hi Lorenzo,
> Of course it builds now, but I'm wondering if the changes have been > tested enough. In general the send and receive loop in hbinet.c for mode == 1 is from the beginning technical nonsense and this modifications instead of fixing it added workaround which partially eliminates overhead introduced by data fragmentation. We should simply remove iRcvBufSize/iSndBufSize members from HB_SOCKET_STRUCT and always use iMaxLen/iSend number of bytes. The select() functions used before recv()/send() operation informs us the it will be unblocked operation and system will accept as much data as it will need choosing optimal value without blocking application. Of course we can keep new function to set internal buffer size (SO_RCVBUF/SO_SNDBUF) for users which will want to change it. best regards, Przemek _______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour