2015-04-05 43 views

回答

4

最初的解決方法來自Google Group

禁用Windows連接關閉檢測是解決此問題的方法。

akka { 

    io { 

    tcp { 

     # On Windows connection aborts are not reliably detected unless an OP_READ is 
     # registered on the selector _after_ the connection has been reset. This 
     # workaround enables an OP_CONNECT which forces the abort to be visible on Windows. 
     # Enabling this setting on other platforms than Windows will cause various failures 
     # and undefined behavior. 
     # Possible values of this key are on, off and auto where auto will enable the 
     # workaround if Windows is detected automatically. 

     windows-connection-abort-workaround-enabled = off 
    } 

    } 

}