[5129] in java-interest
socketClose() on Windows NT
daemon@ATHENA.MIT.EDU (Jurgen Annevelink)
Mon Jan 29 21:24:00 1996
Date: Mon, 29 Jan 1996 17:12:02 -0800
From: Jurgen Annevelink <annevelink@ossi.com>
To: java-interest@java.sun.com
I have been experiencing difficulty closing a socket running
JDK1.0 under windows NT.
I was able to work around the problem by creating my own
implementation of java.net.PlainSocketImpl, which I called
MySocketImpl. I initially guessed that maybe the problem was
related to incorrect setting of SO_LINGER, so I set it up so
that MySocketImpl had two extra native methods for controlling
the linger options.
While testing that out, I found to my surprise that I got a
linkage error when trying to close the socket. It told me that
it could not find the code for closeSocket(). So I modified
MySocketImpl to also call closeSocket natively and guess what,
it all works fine !!
Since I don't have the code for the net.dll library and I also
don't know how it gets invoked, I can only assume that there is
some weird problem calling the code for socketClose(). The
problem seems to be compounded by the fact that using
PlainSocketImpl(), either the linkage error is not thrown, or it
is thrown but catched somewhere.
Where do I report this problem and how I worked around it ?
- Jurgen
P.S. I noticed some other people havng problems with socketClose
onthis mailing list. If you still do, send me an e-mail and can
show you in more detail what I did. It really is simple.
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com