Re: Socket communication issues.



Hi K2,

Currently, the client has no idea this event has happened, so it will
attempt to write to the outputstream and then wait for an excruciatingly
long time for the reply on the inputstream before finally timing out.

I found setSoTimeout (won't help your writes) and setKeepAlive but no
tcpProbeIdle tcpDropIdle or soFullDuplexClose. Curious.

The demo example I'm currently knocking up doesn't check for -1 on the Write
but nonetheless it completes immediately when I kill the server process. And
the subsequent Read reports an immediate error. My server is not Java and I
do have the FullDuplexClose option set their.

Regards Richard Maher

"k2" <karlkras@xxxxxxxxxxxxxxxxxxxxx> wrote in message
news:err41f0pli@xxxxxxxxxxxxxxxxxxxxx
Hello,
Scenario... Client connects to server socket, no problem sending
transmission packs back and forth...
Somewhere during this communication the server socket closes for any
number of reasons.
Currently, the client has no idea this event has happened, so it will
attempt to write to the outputstream and then wait for an excruciatingly
long time for the reply on the inputstream before finally timing out.
Shouldn't there be some indication that the socket has died on the
server? Client socket check for isConnected is still true after this
event, so it carries on as if there's something listening on the other
end when in fact it isn't. Is there some basic cleanup that the server
should be performing during its shutdown process in order to cleanly
sever the communication?

thanks,
K2

--
*****************************************
Please remove the killspam portion of
my return address if replying directly
*****************************************




.



Relevant Pages

  • Re: Dateien per Socket =?ISO-8859-15?Q?=FCbertragen?=
    ... Offensichtlich geht es darum, dem Server explizit mitzuteilen, dass die Datei zu Ende ist. ... es wird solange vom InputStream "in" gelesen, bis dieser ein EOF liefert, erst ... Wir sagen die Verbindung beginnt im CommMode und mit je nach übertragener Nachricht wechseln wir danach in den TransferMode oder bleiben im CommMode. ...
    (de.comp.lang.java)
  • Re: Slow internet on client pcs
    ... It was indeed a timing issue. ... clients had a timing ... > Assuming you have rerun CEICW on the server, ...
    (microsoft.public.windows.server.sbs)
  • Re: SharePoint Services Error
    ... So if everything in CompanyWeb works fine, then all is ok and it's a timing ... > Microsoft Small Business Server Support ... >> Check the database connection information and make sure that the ...
    (microsoft.public.windows.server.sbs)
  • Re: Socket Connect using WM 2005
    ... I have seen client connectfailing with error 10061 when server socket is ... both server and client running on WM50. ... in the cradle or has a WLAN connection we use the computername e.g. ... FUNCTION int wcstombs ...
    (microsoft.public.pocketpc.developer.networking)
  • Re: "connection closed by server" while retrieving email
    ... >>His client is blaming our mail server, but other folks at his location ... >>I suspect somebody is timing out, but I can't figure out how to ... Did your MTU are ok, on the server, the client machine and gateway if any? ...
    (comp.unix.aix)