hello,
is there a way i can set a timeout for an SSL_accept, either if the
handshake does not complete within X seconds (prefered), or even if it
is waiting on a blocking socket and no data comes in for X seconds. I
know i can use alarms, but i was wondering (hoping), there was a
mechanism
On Sun, Apr 04, 2010, Adam Grossman wrote:
hello,
is there a way i can set a timeout for an SSL_accept, either if the
handshake does not complete within X seconds (prefered), or even if it
is waiting on a blocking socket and no data comes in for X seconds. I
know i can use alarms, but i
Peter-Michael,
thanks for the info, but this is on linux.
-=- adam grossman
On Sun, 2010-04-04 at 19:40 +0200, PMHager wrote:
Adam Grossman wrote:
is there a way i can set a timeout for an SSL_accept, either if the
handshake does not complete within X seconds (prefered), or even if it
is
Adam Grossman wrote:
thanks for the info, but this is on linux.
The socket interface is almost the same on linux:
#include sys/socket.h
int hSocket;
int dwTimeout=1000; // milliseconds
setsockopt(hSocket,SOL_SOCKET,SO_RCVTIMEO,(void*)dwTimeout,sizeof dwTimeout);
i have done networking programming for a while, and i have never run
across that before. thank you so much, you have just saved me a lot of
development time!
-=- adam grossman
On Sun, 2010-04-04 at 22:34 +0200, PMHager wrote:
Adam Grossman wrote:
thanks for the info, but this is on linux.