diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2000-10-12 01:50:33 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2000-10-12 01:50:33 +0000 |
commit | 924046ce75ae5d5ee763f7cff77854bb493814c0 (patch) | |
tree | 78f6182654c22fb21c1932bfd58f27aa06041d58 /doc | |
parent | 9e2c0f41d7deb0d80be53eed75bfe79f24467ec3 (diff) |
Make non blocking I/O work for accept BIOs.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/crypto/BIO_s_accept.pod | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/doc/crypto/BIO_s_accept.pod b/doc/crypto/BIO_s_accept.pod index c49da7fb02..b2b8e911e8 100644 --- a/doc/crypto/BIO_s_accept.pod +++ b/doc/crypto/BIO_s_accept.pod @@ -92,7 +92,7 @@ BIO_do_accept() serves two functions. When it is first called, after the accept BIO has been setup, it will attempt to create the accept socket and bind an address to it. Second and subsequent calls to BIO_do_accept() will await an incoming -connection. +connection, or request a retry in non blocking mode. =head1 NOTES @@ -130,6 +130,13 @@ however because the accept BIO will still accept additional incoming connections. This can be resolved by using BIO_pop() (see above) and freeing up the accept BIO after the initial connection. +If the underlying accept socket is non blocking and BIO_do_accept() is +called to await an incoming connection it is possible for +BIO_should_io_special() with the reason BIO_RR_ACCEPT. If this happens +then it is an indication that an accept attempt would block: the application +should take appropriate action to wait until the underlying socket has +accepted a connection and retry the call. + =head1 RETURN VALUES TBA |