diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2016-04-08 19:40:28 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2016-04-08 19:41:41 +0200 |
commit | 2c9de3d2e9e293e6a6eca851d68b3afcfe492901 (patch) | |
tree | 375eeabe7629cc2638e8d38a35ec9c66d2ad8f6d | |
parent | fd079d8cc6463433d410bc80d9507065da8ef4f0 (diff) | |
download | gnutls-2c9de3d2e9e293e6a6eca851d68b3afcfe492901.tar.gz |
doc: replace inaccurate sentence with reference to gnutls_record_discard_queued [ci skip]
-rw-r--r-- | doc/cha-gtls-app.texi | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/cha-gtls-app.texi b/doc/cha-gtls-app.texi index 18eaf2c86f..5e6824f047 100644 --- a/doc/cha-gtls-app.texi +++ b/doc/cha-gtls-app.texi @@ -797,7 +797,7 @@ The blocking, due to network interaction, calls such as can be set to non-blocking by setting the underlying sockets to non-blocking. If other push and pull functions are setup, then they should behave the same way as @funcintref{recv} and @funcintref{send} when used in a non-blocking -way, i.e., set errno to @code{EAGAIN}. Since, during a TLS protocol session +way, i.e., return -1 and set errno to @code{EAGAIN}. Since, during a TLS protocol session @acronym{GnuTLS} does not block except for network interaction, the non blocking @code{EAGAIN} errno will be propagated and @acronym{GnuTLS} functions will return the @code{GNUTLS_E_AGAIN} error code. Such calls can be resumed the @@ -811,8 +811,8 @@ that it is only applicable to the kernel sockets API. To check for any available buffers in a @acronym{GnuTLS} session, utilize @funcref{gnutls_record_check_pending}, either before the @funcintref{select} system call, or after a call to -@funcref{gnutls_record_recv}. @acronym{GnuTLS} does not keep a write buffer, -thus when writing no additional actions are required. +@funcref{gnutls_record_recv}. Data queued by @funcref{gnutls_record_send} +(when interrupted) can be discarded using @funcref{gnutls_record_discard_queued}. The following paragraphs describe the detailed requirements for non-blocking operation when using the TLS or DTLS protocols. |