SO_REUSEADDR option is not properly handled for non-server socket
-----------------------------------------------------------------

                 Key: JRUBY-4299
                 URL: http://jira.codehaus.org/browse/JRUBY-4299
             Project: JRuby
          Issue Type: Bug
          Components: Extensions
    Affects Versions: JRuby 1.4
         Environment: latest JRuby
            Reporter: Vladimir Sizikov
            Assignee: Vladimir Sizikov
             Fix For: JRuby 1.5


Setting SO_REUSEADDR on TCPSocket does not have any effect, while sometimes 
this is desirable, when we construct the server with regular sockets:

{code}
sock = Socket.new(AF_INET, SOCK_DGRAM, 0)
sockaddr = Socket.pack_sockaddr_in(SocketSpecs.port, "127.0.0.1")
sock.getsockopt(Socket::SOL_SOCKET, Socket::SO_REUSEADDR) # does not have any 
effect
sock.bind(sockaddr)
{code}

Will fix.

-- 
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


Reply via email to