> So, my question is, what is wsoNoReceiveLoop for wsoNoReceiveLoop tell the component to not loop until the message queue has no more FD_READ messages. When a loop is done (default) the component receive data as fast as possible. This maybe result is heavy load on the computer when the network is very fast compared to the CPU speed.
> (and why does it work in my case without setting it), and is > it safe to not set it? It shouldn't have any impact on the high level protocol, except speed. -- Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] http://www.overbyte.be ----- Original Message ----- From: "Jack" <[EMAIL PROTECTED]> To: "ICS support mailing" <twsocket@elists.org> Sent: Sunday, December 31, 2006 8:20 AM Subject: [twsocket] wsoNoReceiveLoop problem with bandwidth limiting > > I borrowed some code from HttpProt.pas to limit bandwidth > in my application. My application is a client socket talking > to a server in a proprietary protocol. When I download a large > file, the connection always break. When I observe the traffic > in Ethereal, I see many error (in red and black) packets saying > "TCP zero window" being sent to the server when it happens. > I suspect it has something to do with wsoNoReceiveLoop option, > Pause and Resume. I then disabled the code calling Pause and > Resume, but left this line in, > > ComponentOptions := ComponentOptions + [wsoNoReceiveLoop]; > > the problem remained. I then took the above line out, and > left Pause and Resume in, I was able to complete the download. > > So, my question is, what is wsoNoReceiveLoop for (and why does > it work in my case without setting it), and is it safe to not > set it? > > -- > Best regards, > Jack > > -- > To unsubscribe or change your settings for TWSocket mailing list > please goto http://www.elists.org/mailman/listinfo/twsocket > Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be