Skip to content

Commit

Permalink
fixes nanomsg#574 nng_close should indicate warning against transmit …
Browse files Browse the repository at this point in the history
…truncation
  • Loading branch information
gdamore committed Jul 4, 2018
1 parent 77d35b5 commit 68d117e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/man/nng_close.3.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ in `NNG_ECLOSED`.
Threads waiting for operations on the socket when this
call is executed may also return with an `NNG_ECLOSED` result.

NOTE: Closing the socket while data is in transmission will likely lead to loss
of that data.
There is no automatic linger or flush to ensure that the socket send buffers
have completely transmitted.
It is recommended to wait a brief period after calling
`<<nng_send.3#,nng_send()>>` or similar functions, before calling this
function.

== RETURN VALUES

This function returns 0 on success, and non-zero otherwise.
Expand Down

0 comments on commit 68d117e

Please sign in to comment.