B
Bob
This question has been brought up before but I have yet to find a reasonable
answer. Can someone explain to me how to create a timeout for the BeginSend
method? I have seen where people say to create a timer and then have it
close the socket when the timer expires but this is not a true socket
timeout. The timeout should be on the socket receiving a response from the
remote host not how long the entire socket operation takes. If I pass in a
large byte array to BeginSend and data is being sent at 8 bytes a second but
the data is still being acknowledged then it should never timeout even
though the entire operation is taking longer then the timeout I specified.
Only if no ACK response is received for a certain amount of time should it
timeout.
Any one have any solutions to this?
Bob
answer. Can someone explain to me how to create a timeout for the BeginSend
method? I have seen where people say to create a timer and then have it
close the socket when the timer expires but this is not a true socket
timeout. The timeout should be on the socket receiving a response from the
remote host not how long the entire socket operation takes. If I pass in a
large byte array to BeginSend and data is being sent at 8 bytes a second but
the data is still being acknowledged then it should never timeout even
though the entire operation is taking longer then the timeout I specified.
Only if no ACK response is received for a certain amount of time should it
timeout.
Any one have any solutions to this?
Bob