• Post Reply Bookmark Topic Watch Topic
  • New Topic

Exception Connection reset  RSS feed

 
Cadburry
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
Here I am creating a client program with code

and server code is as : ( Not comppleted here........)

.....
....

while running I get my required response first time at the same time this exception flash on the Server Console.

If any one can suggest me then please help me...
java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream)
...
....
Thank you..
[ December 20, 2008: Message edited by: Cadburry for urs ]
 
Amit Ghorpade
Bartender
Posts: 2856
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Cadburry for urs" please check your private messages for an important administrative matter. You can see them by clicking the My Private Messages link above.
 
Chris Blades
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The host you are connecting to is closing the stream (or you are) while there is still data in the buffer, thus the read exception. This causes RST to be sent, which is causing the connection reset exception.
 
Amit Ghorpade
Bartender
Posts: 2856
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Cadburry" please see your private messages again.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!