hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 13463] - Request/Response race condition when doing multiple requests on the same connection.
Date Sat, 22 Feb 2003 00:57:46 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13463>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13463

Request/Response race condition when doing multiple requests on the same connection.





------- Additional Comments From sam.maloney@filogix.com  2003-02-22 00:57 -------
> 6) The connection's InputStream.read() will return -1 and the Method will  
> assume the response is invalid..... 
 
This is incorrect. An InputStream will block until the requested amount of data has 
become available, or the connection is closed (EOF). (See JDK JavaDoc for 
InputStream). 
 
If the socket is still connected on both ends, calling (int)read() on the client end will

block until one byte is available. It will only return -1 on EOF.

Mime
View raw message