[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-gnutls] gnutls and non blocking socket
From: |
Regit |
Subject: |
[Help-gnutls] gnutls and non blocking socket |
Date: |
Tue, 12 Jul 2005 17:15:05 +0200 |
Hi,
I've got a question about how gnutls works with non-blocking socket and
with socket that reach timeout.
In the file lib/gnutls_buffers.c around line 243 there is no special
case for errno==EAGAIN and i=-1.
But man page of recv says :
If no messages are available at the socket, the receive calls wait
for a message to arrive, unless the socket is nonblocking (see fcntl(2))
in which case the value -1 is returned and the external variable errno
set to EAGAIN.
Is it correct that we should rather leave cleanly in this case as this
is not an error case but a waited behaviour ?
BR,
--
Éric Leblond, address@hidden
Téléphone : 01 44 89 46 40, Fax : 01 44 89 45 01
INL, http://www.inl.fr
- [Help-gnutls] gnutls and non blocking socket,
Regit <=