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

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

I haven't actually tried setting this. I did check that the socket was in 
TIME_WAIT which closely match the docs for SO_REUSEADDR. I'm on Ubuntu with 
OpenJDK. 

I can check this is the right solution. Given that the java docs say the 
default is platform dependent it seems prudent to call this anyway.

> 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