Re: socket connection not being reset correctly




"Alan Krueger" <wgzkid502@xxxxxxxxxxxxxx> wrote in message
news:0i_De.13574$Iv5.11524@xxxxxxxxxxx
> Allan Bruce wrote:
>> lreader = new BufferedReader(new SocketInputStream(lCCB.getSocket));
>
> I suspect this isn't the actual code, unless you have a field called
> "getSocket", which would be mighty peculiar.
>

I have a lot of debug info and logging so I copied over the necessary bits,
and in doing so, I forgot to add the () of getSocket. ANd the typo below,
dosconnceted ;-)

>> try
>> {
>> String lread = lreader.readLine();
>> if (lread == null)
>> {
>> throw new Exception("Graceful client disconnect");
>> }
>> }
>> catch (Exception e)
>> {
>> dosconnectedCLient(lCCB);
>> }
>
> *blink*

I have found that netstat reckons the connections are still up, so is it my
JVM thats causing the problem? Or can I setup the sockets in a way for them
to not display this behaviour?

Thanks.
Allan


.