• Post Reply Bookmark Topic Watch Topic
  • New Topic

Socket inputStream readFully problem

 
Thanga prakash Somasundaram
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
I have a client socket towards my server.
my inputStream is blocked with readFully() in a separate thread..
now, i closed the streams and the socket also from my main thread.
But, the socket is still alive in the net ( observed using netstat )
how to close the socket in this condition?
please help me for the same..
thanks and regards,
stp.
 
Thanga prakash Somasundaram
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
I fixed this problem by setting the environment variable
J2SE_PREEMPTCLOSE as 1, As recommended in java.sun.com .( This solution is applicable only for java client in linux platform with jre 1.3.1 )
reference : java.sun.com, BugId=434415.
thanks & regards,
stp.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!