java - Server closes TCP connection via FIN, ACK and RST immediatelly after establishing it -


on mac os x 10.8 machine have tomcat 7.0.40 server , client, both running locally. via 3-way-handshake tcp connection established, followed fin, ack , rst server. client receives "end of file server", or "connection reset".

tcp sequence:

client syn
server syn, ack
client ack

server [tcp window update] ack
server fin, ack
client ack
server [tcp dup ack] ack
client /myurl/...
server rst

details
- client , server both run locally
- first request fails. following requests succeed.
- no firewall in on
- maxfiles increased, in vain

what causes server closes socket? appreciate tips , ideas.

edit: tomcat's log has following stack traces:

     fine: error parsing http request header     java.net.socketexception: invalid argument     @ java.net.socketinputstream.socketread0(native method)     @ java.net.socketinputstream.read(socketinputstream.java:150)     @ java.net.socketinputstream.read(socketinputstream.java:121)     @ org.apache.coyote.http11.internalinputbuffer.fill(internalinputbuffer.java:516)     @ org.apache.coyote.http11.internalinputbuffer.fill(internalinputbuffer.java:501)     @ org.apache.coyote.http11.internalinputbuffer.parserequestline(internalinputbuffer.java:98)     @ org.apache.coyote.http11.abstracthttp11processor.process(abstracthttp11processor.java:928)     @ org.apache.coyote.abstractprotocol$abstractconnectionhandler.process(abstractprotocol.java:589)     @ org.apache.tomcat.util.net.jioendpoint$socketprocessor.run(jioendpoint.java:310)     @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1145)     @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:615)     @ java.lang.thread.run(thread.java:724) 

and

     aug 14, 2013 5:15:17 pm org.apache.coyote.http11.abstracthttp11processor process     fine: error parsing http request header     java.io.eofexception: unexpected eof read on socket     @ org.apache.coyote.http11.http11processor.setrequestlinereadtimeout(http11processor.java:174)     @ org.apache.coyote.http11.abstracthttp11processor.process(abstracthttp11processor.java:926)     @ org.apache.coyote.abstractprotocol$abstractconnectionhandler.process(abstractprotocol.java:589)     @ org.apache.tomcat.util.net.jioendpoint$socketprocessor.run(jioendpoint.java:312)     @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1145)     @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:615)     @ java.lang.thread.run(thread.java:724) 

you must either violating configured access rule such ip address blacklist, or else sending doesn't understand.


Comments

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -