You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Morycz, Felicia V" <fe...@eds.com> on 2002/09/11 16:41:13 UTC

[OT][Sockets] SocketException connection reset by peer

I have a struts front-end that communicates to a CICS backend using TCP/IP
Sockets.  My communications are simple, but I am getting a SocketException,
connection reset by peer.

Here are my communications

1.  write a string to the output stream and flush
2.  buffered read a string
3.  write a string to the output stream and flush
4.  buffered read a string

I get the connection reset by peer SocketException on step 4.  When the CICS
backend goes to read what I wrote in step 3, it doesn't find it yet.  We
must hard code a delay on the read on the CICS backend for step 3, and then
we are successful.

Why?

This CICS backend has other front ends that can communicate successfully
without needing the delay.

I am trying to learn more about socket communications.  Please let me know
if you have any suggestions on what I could try next.  Any suggested reading
material?  I have gone through the API docs for sockets and the Sun
tutorial.

I am using Tomcat 4.1, Struts 1.1-b2 and JDK 1.4.

Regards,

Felicia


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>