test/testSocket.rb error on server socket between accept and read
-----------------------------------------------------------------
Key: JRUBY-2940
URL: http://jira.codehaus.org/browse/JRUBY-2940
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.1.3
Reporter: Thomas E Enebo
In test/testSocket.rb the first test defines a server in a new thread and then
creates a client in the main thread. The client then connects to the server
and writes a string. The server accepts this socket and then performs a read.
It appears that the accept (or what is beneath this) is not fully set up before
the first read and that read sometimes returns "". This seems like a bug to
me. I would expect any read on server side to after expect to block or only
return if the client connection goes away (perhaps this is an exception in
Socket api?).
I added a small .2s delay to make this not so annoying so the test consistently
passes until this gets dug into more. Or someone explains to me why this part
of the test is bogus.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email