Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

when the existing connection becomes in-valid  RSS feed

 
BalaiahRaju ChamarthiRaju
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why my connection is getting invalid after some time and it is returning null. please help me out.
 
Joe Ess
Bartender
Posts: 9406
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's what connections do. Stale connections are purged so servers don't get locked up with zombies. Either keep sending data back and forth to keep the connection alive (sometimes called a "heartbeat") or handle the socket exception and reconnect.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!