T
Tomas Penc
Hi folks,
lot of days we have problems with SocketException, thrown once per
several hours on our TCP connection (thrown in client socket) and cannot
overcome it. :-((( We already tried to find something elsewhere on web,
but it never worked out. So, please help, if you can...
We have a Socket connected over TCP and 2 threads: one reads constantly
from the socket (blocking read), one writes data time to time. The
application runs on Tomcat4.1 under Linux, Java 1.4.1. Once per several
hours the following exception is thrown while writing to socket:
java.net.SocketException: Broken pipe
at java.net.SocketOutputStream.socketWrite0(Native Method)
at
java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
at
java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:69)
at
java.io.BufferedOutputStream.flush(BufferedOutputStream.java:127)
....
(We also tried it without BufferedOutputStream.)
We will be thankful for every useful comment.
regards,
Tomas Penc
lot of days we have problems with SocketException, thrown once per
several hours on our TCP connection (thrown in client socket) and cannot
overcome it. :-((( We already tried to find something elsewhere on web,
but it never worked out. So, please help, if you can...
We have a Socket connected over TCP and 2 threads: one reads constantly
from the socket (blocking read), one writes data time to time. The
application runs on Tomcat4.1 under Linux, Java 1.4.1. Once per several
hours the following exception is thrown while writing to socket:
java.net.SocketException: Broken pipe
at java.net.SocketOutputStream.socketWrite0(Native Method)
at
java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
at
java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:69)
at
java.io.BufferedOutputStream.flush(BufferedOutputStream.java:127)
....
(We also tried it without BufferedOutputStream.)
We will be thankful for every useful comment.
regards,
Tomas Penc