summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2016-04-08 19:40:28 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2016-04-08 19:42:11 +0200
commite98b244c87a6a91caa8b506937f6c545388a8c7a (patch)
tree32eae5099c0362879d088faec096219565207a35
parent083872727157c54c2e115aba6d71c1e6adb6d87a (diff)
downloadgnutls-e98b244c87a6a91caa8b506937f6c545388a8c7a.tar.gz
doc: replace inaccurate sentence with reference to gnutls_record_discard_queued [ci skip]
-rw-r--r--doc/cha-gtls-app.texi6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/cha-gtls-app.texi b/doc/cha-gtls-app.texi
index 0b860ec8a8..3fe37a1ae4 100644
--- a/doc/cha-gtls-app.texi
+++ b/doc/cha-gtls-app.texi
@@ -791,7 +791,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
@@ -805,8 +805,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.