RE: non-blocking BIO_do_connect problems with select

2008-01-17 Thread David Schwartz
> Now the problem is before the connection is established. > Select is based on the file descriptor. Looks like I can't get > the file descriptor before the connect. > FD_SET(BIO_get_fd(conn, &c), &rfds) BIO_get_fd > returns null. what did I do wrong? You should not be calling 'select' until tol

Re: non-blocking BIO_do_connect problems with select

2008-01-17 Thread Dr. Stephen Henson
On Thu, Jan 17, 2008, Yolanda Liu (liuyu) wrote: > Hi, all: > > Wondering if anybody has done something related this and give me some > suggestions. > > I am using OpenSsl library to do connection to a port. OpenSSL doesn't > provide a configurable timeout for BIO_do_connect. It is relying on