Re: No error while sending via TCP Socket

2006-07-03 Thread Grant Edwards
On 2006-07-03, Ben Sizer <[EMAIL PROTECTED]> wrote: > Grant Edwards wrote: >> You're talking about the case where there's un-ACKed data. >> Breaking a link when there's no un-ACKed data (which is what >> the OP did) will require an hour or two to timeout _iff_ >> keepalive is enabled. If keepaliv

Re: No error while sending via TCP Socket

2006-07-03 Thread Ben Sizer
Grant Edwards wrote: > You're talking about the case where there's un-ACKed data. > Breaking a link when there's no un-ACKed data (which is what > the OP did) will require an hour or two to timeout _iff_ > keepalive is enabled. If keepalive has not been enabled, a > broken connection with no un-AC

Re: No error while sending via TCP Socket

2006-07-03 Thread Grant Edwards
On 2006-07-03, Ben Sizer <[EMAIL PROTECTED]> wrote: >>> and give me a hint how to get an exception >> >> You can't -- unless you've enabled the keepalive option on the >> TCP connection and you've waited the requisite time after the >> cable is cut before sending your data (IIRC it takes a couple

Re: No error while sending via TCP Socket

2006-07-03 Thread [EMAIL PROTECTED]
Q: I have been looking through Volume 1 & 2 on the topics of TCP timeouts. I have been looking in the section on "Timeout And Retransmission" where you talk about round trip times. My question to you would be what would make a tcp connection timeout? Is there a certain number of retries that need t

Re: No error while sending via TCP Socket

2006-07-03 Thread Ben Sizer
Grant Edwards wrote: > On 2006-06-30, Martin Bürkle <[EMAIL PROTECTED]> wrote: > > > I have writen a programm using TCP sockets. After i get the > > connection to another socket I cut the Ethernet cable. Then I > > send a message. The program doesnt raise any exception. Can > > somebody tell me why

Re: No error while sending via TCP Socket

2006-06-30 Thread Grant Edwards
On 2006-06-30, Martin Bürkle <[EMAIL PROTECTED]> wrote: > I have writen a programm using TCP sockets. After i get the > connection to another socket I cut the Ethernet cable. Then I > send a message. The program doesnt raise any exception. Can > somebody tell me why Because send() has successfull

Re: No error while sending via TCP Socket

2006-06-30 Thread Laszlo Nagy
Laszlo Nagy írta: > Ben Sizer írta: > >> Martin Bürkle wrote: >> >> >>> I have writen a programm using TCP sockets. After i get the connection >>> to another socket I cut the Ethernet cable. Then I send a message. >>> The program doesnt raise any exception. Can somebody tell me why and >

Re: No error while sending via TCP Socket

2006-06-30 Thread Laszlo Nagy
Ben Sizer írta: > Martin Bürkle wrote: > >> I have writen a programm using TCP sockets. After i get the connection >> to another socket I cut the Ethernet cable. Then I send a message. >> The program doesnt raise any exception. Can somebody tell me why and >> give me a hint how to get an excepti

Re: No error while sending via TCP Socket

2006-06-30 Thread Laszlo Nagy
Martin Bürkle írta: > Hi NG, > > I have writen a programm using TCP sockets. After i get the connection > to another socket I cut the Ethernet cable. Then I send a message. > The program doesnt raise any exception. Can somebody tell me why and > give me a hint how to get an exception > Okay, l

Re: No error while sending via TCP Socket

2006-06-30 Thread Ben Sizer
Martin Bürkle wrote: > I have writen a programm using TCP sockets. After i get the connection > to another socket I cut the Ethernet cable. Then I send a message. > The program doesnt raise any exception. Can somebody tell me why and > give me a hint how to get an exception Have you tried waiting

No error while sending via TCP Socket

2006-06-29 Thread Martin Bürkle
Hi NG, I have writen a programm using TCP sockets. After i get the connection to another socket I cut the Ethernet cable. Then I send a message. The program doesnt raise any exception. Can somebody tell me why and give me a hint how to get an exception Thanks for your help. Martin -- http://m