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

Roger Schildmeijer commented on DEFT-173:
-----------------------------------------

Interesting. Have you tried to explicitly enable SO_REUSEADDR? Did it solve 
your problem?

I tried locally on my machine (OS X 10.7), and the default value for this was 
'true'.
added  
    System.out.println(serverChannel.socket().getReuseAddress());  (in 
org.deftserver.web.HttpServer)

 The documentation about ServerSocketChannel.setReuseAddress says:
"When a ServerSocket is created the initial setting of SO_REUSEADDR is not 
defined. Applications can use getReuseAddress() to determine the initial 
setting of SO_REUSEADDR"



> 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