RE: setting an SSL_accept(...) timeout

2010-04-04 Thread Saju Paul
: openssl-users@openssl.org Subject: RE: setting an SSL_accept(...) timeout 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

RE: setting an SSL_accept(...) timeout

2010-04-04 Thread Adam Grossman
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.

RE: setting an SSL_accept(...) timeout

2010-04-04 Thread PMHager
Adam Grossman wrote: > thanks for the info, but this is on linux. The socket interface is almost the same on linux: #include int hSocket; int dwTimeout=1000; // milliseconds setsockopt(hSocket,SOL_SOCKET,SO_RCVTIMEO,(void*)&dwTimeout,sizeof dwTimeout); setsockopt(hSocket,SOL_SOCKET,SO_SNDTI

RE: setting an SSL_accept(...) timeout

2010-04-04 Thread Adam Grossman
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

RE: setting an SSL_accept(...) timeout

2010-04-04 Thread PMHager
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 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 w

Re: setting an SSL_accept(...) timeout

2010-04-04 Thread Dr. Stephen Henson
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, bu