diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2015-10-12 13:52:03 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2015-10-12 14:56:17 +0200 |
commit | 8d43daf7b5f75952a7d5ec49f1138db18ebe8ddb (patch) | |
tree | 7e5797d1dbca3e064236eec3810ea9d76b69cc48 /lib/system_override.c | |
parent | c141b08728e0853633c8cd3dc35d108984d47f9c (diff) | |
download | gnutls-8d43daf7b5f75952a7d5ec49f1138db18ebe8ddb.tar.gz |
Introduced GNUTLS_INDEFINITE_TIMEOUT
This allows to specify an indefinite timeout to gnutls_record_set_timeout().
In addition this flag is accepted by gnutls_handshake_set_timeout() and
cancels out a previously set timeout.
Resolves #41
Diffstat (limited to 'lib/system_override.c')
-rw-r--r-- | lib/system_override.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/system_override.c b/lib/system_override.c index 79a4db0de4..27959c3af4 100644 --- a/lib/system_override.c +++ b/lib/system_override.c @@ -95,7 +95,9 @@ gnutls_transport_set_pull_function(gnutls_session_t session, * for the provided transport calls. * * As with select(), if the timeout value is zero the callback should return - * zero if no data are immediately available. + * zero if no data are immediately available. The special value + * %GNUTLS_INDEFINITE_TIMEOUT indicates that the callback should wait indefinitely + * for data. * * @gnutls_pull_timeout_func is of the form, * int (*gnutls_pull_timeout_func)(gnutls_transport_ptr_t, unsigned int ms); |