How about trapping the socket exception and reopening the socket?
--
Bryan Phillips
MCSD, MCDBA, MCSE
Blog:
http://bphillips76.spaces.live.com
"Geir Sanne" <GeirSanne (AT) discussions (DOT) microsoft.com> wrote
Quote:
hi!!!
im using tcp/ip and networkstream to read messages from a socket.
the problem is that if the sender uses to long time i get an ioexception
with innerexception socketexception timedout and the socket is closed.
is it a way to just get a timeout message and keep the socket open ? |