[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Some SSL stuff.
From: |
Christian Hopp |
Subject: |
Re: Some SSL stuff. |
Date: |
Thu, 7 Nov 2002 18:56:28 +0100 (CET) |
On 6 Nov 2002, Jan-Henrik Haukeland wrote:
> Christian Hopp <address@hidden> writes:
>
> > On Wed, 6 Nov 2002, Christian Hopp wrote:
> >
> > > On Tue, 5 Nov 2002, Christian Hopp wrote:
> > >
> > > Anyways, it seems to me we have make the underlying socket
> > > non-blocking in order to make the ssl connection non-blocking. That
> > > means we need to do a
> > > fcntl(s, F_SETFL, O_NONBLOCK)
> > > with our network socket.
> >
> > Forget about that... I tried it... it doesn't work.... I feel like
> > doing monologues. (-:
>
> Heh, have you tried net.c:set_noblock it uses ioctl. Seems to work
> last time I tested. Another option is to replace the accept in
> engine.c with SSL_accept when in ssl mode. That way you have only one
> blocking accept. But try set_noblock first :-)
I think I have it. It was tricky, cuz you have loop it and retry
whenever necessary. So now I made the underlying socket non-blocking.
Which makes afaik the socket-bio also non-blocking. And the connect,
accept, recv and write is in a while-retry loop. And in tests on the
sol7 machine it looked well.
I think it works well. I can commit tomorrow.
Christian
--
Christian Hopp email: address@hidden
Institut für Elektrische Informationstechnik fon: +49-5323-72-2113
TU Clausthal, Leibnizstr. 28, 38678 Clausthal-Zellerf. fax: +49-5323-72-3197
pgpkey: https://www.iei.tu-clausthal.de/pgp-keys/
- Some SSL stuff., Christian Hopp, 2002/11/04
- Re: Some SSL stuff., Jan-Henrik Haukeland, 2002/11/04
- Re: Some SSL stuff., Jan-Henrik Haukeland, 2002/11/04
- RE: Some SSL stuff., Jan-Henrik Haukeland, 2002/11/14
- RE: Some SSL stuff., Jan-Henrik Haukeland, 2002/11/14
- RE: Some SSL stuff., Christian Hopp, 2002/11/15
- Re: Some SSL stuff., Jan-Henrik Haukeland, 2002/11/15
- RE: Some SSL stuff., Christian Hopp, 2002/11/15
- Re: Some SSL stuff., Jan-Henrik Haukeland, 2002/11/15
- Re: Some SSL stuff., Rory Toma, 2002/11/18
- Question, Rory Toma, 2002/11/20
- Re: Question, Rory Toma, 2002/11/20
- Re: Question, Martin Pala, 2002/11/21