[xSocket-develop] ClosedConnectionException
Status: Inactive
Brought to you by:
grro
|
From: Mohamad A. B. A. <az...@gm...> - 2008-05-03 10:25:37
|
Hi there,
I'm using xSocket 1.2.1 MultithreadedServer to listen for HTTP POST
request. Upon receiving the request, I'd do something with the data
which takes like 1 to 3 seconds and response back to the client.
Basically, inside my onData() handler, I'd have something like:
connection.readByteBufferByDelimiter(delimeter);
//do something, and then:
connection.write(someData);
However, every an hour or so it won't be able to write the response back
and get the following exception:
org.xsocket.ClosedConnectionException: connection
7c292b5b.119a45810b8.4d6a25b2.s.12074 is already closed
at org.xsocket.stream.Connection.write(Connection.java:667)
at org.xsocket.stream.Connection.write(Connection.java:582)
at
org.xsocket.stream.NonBlockingConnection.onDataEvent(NonBlockingConnection.java:757)
.......
My question is, does the connection here is closed by xSocket? If so,
any idea to solve this?
(btw, the client is an Axis client which simply post the request to my
xSocket server)
Thank you.
Regards,
Azri.
|