[ 
https://issues.apache.org/jira/browse/DEFT-173?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13071189#comment-13071189
 ] 

Adam Lofts commented on DEFT-173:
---------------------------------

I fail to see the disadvantage of ensuring SO_REUSEADDR is true. All the 
references I've read suggest it for server sockets. You reference warns that 
"It may confuse the server" however this should not be a problem since the http 
header parsing will simply fail and the socket closed. 

That said - the default does appear to be true on my machine so I'm now not 
clear exactly what is going on.

> 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

        

Reply via email to