: 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
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.
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
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
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
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
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 alread