Ok , I can't really wait for that to come out :( Any tips on using maybe JNI
to set that sockopt? (SO_REUSEADDR)
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
First I must say thanks all for the help!
In this problem, I really would like to re-use the connections. Is it
possible to set SO_REUSEADDR for a server socket in Java?
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
wi
Kevin,
I just remembered that I run into the same problem when using Sun JDK1.2.2_006.
Switching to JDK 1.3 fixed the problem. Apperently 1.2.2_006 was not
closing the underlying Linux sockets correctly.
Alexander
--
To UNSUB
> 1. I'm assuming you are "NULL"ing the used sockets, so they get garbage
> collected?
You should not rely on garbage collection for scarce resources such
as file and socket handles. Make sure you invoke socket.close() when
you're done.
Since you're working with threads, it is possible th
Thanks a lot for the help.
I'm wondering what is the downside of setting fd_max to some huge number...
Is there one?
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PRO
Kevin,
You probably need to use the Socket.setSoLinger() call.
Nathan
On Fri, Apr 27, 2001 at 09:59:57AM -0400, kevin1 wrote:
> Hello all,
> I am somewhat new to java, and I am having a problem with a server app that
>I w
> rote.
> What is happening is that for each connection to th
Hi
> I am somewhat new to java, and I am having a problem with a
> server app that I wrote.
> What is happening is that for each connection to the server, it returns a
> Socket and continues the conversation. This is fine. The socket does
> some simple tasks and then I close it.