• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

why server closed and displays Recv failure: Connection reset by peer ?

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi friends,

I had developed GUI which is client computer interface. My GUI has CONNECT button which is double as connect and disconnect. When I clicked on connect client connects to server (server maintained on Linux, which is developed in C language) and clicked on disconnect client disconnects with server, server side displays 'connection closed by client' message and server waiting for client,it is fine. But in case of GUI closed without disconnecting server, server automatically closed and displays' Recv failure: Connection reset by peer' message and we have to restart server again. (This scenario happened when client resides in windows OS only, whereas if the client also runs on Linux this is not happened, instead of that it displays 'connection closed by client' message and server waiting for client as usual). Any one can help me, why this error came?

Thanking you friends.
 
Bartender
Posts: 5167
11
Netbeans IDE Opera Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you tried using a WindowListener#windowClosing to disconnect if connected?
 
And will you succeed? Yes you will indeed! (98 and 3/4 % guaranteed) - Seuss. tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic