From: Alexander M. <al...@gm...> - 2003-05-22 18:18:52
|
> If an external applications hold the connection open the non-blocking IO > library will return immediately with 0 bytes on a read() therefore the single > thread is free to continue processing other requests. You mean if there isnt any data to send we just iterate through the loop again and check in the next round whether there is data waiting? This would work, however it seems it would be rather difficult to understand such a code as it would need many lists to keep track of active connections with their associations to running applications. We would need to split every outgoing data (regular files and CGI data) into small pieces which would need to be transferred individually in order to prevent that blocking. Does anyone have comments to that? Alexander |