[ https://issues.apache.org/jira/browse/DEFT-173?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13071174#comment-13071174 ]
Roger Schildmeijer commented on DEFT-173: ----------------------------------------- Please check the default value on your machine. There is a reason to have SO_REUSEADDR false. For TCP, when a connection is closed, one (or both) endpoints must hang around for a while in "Time-Wait" state to vacuum up stray packets. The "quiet time" is supposed to be equal to twice the maximum amount of time a packet can remain in the network. In practice, the length of the quiet time is implementation dependent, because there is no real mechanism that limits how long a packet can be delayed by the network. Values in use range from 4minutes down to 30 seconds or even short. > setReuseAddress(true) in HttpServer > ----------------------------------- > > Key: DEFT-173 > URL: https://issues.apache.org/jira/browse/DEFT-173 > Project: Deft > Issue Type: Bug > Reporter: Adam Lofts > > If I terminate deft from eclipse and then start it up again I get an "Address > already in use" because the socket is in the TIME_WAIT stage. The solution > for this is so set SO_REUSEADDR on the socket which corresponds to > ServerSocket.setReuseAddress(true) in java. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira