From 6e025db296ef1588e5c8a768f62f79fc34824267 Mon Sep 17 00:00:00 2001 From: ferrieux Date: Thu, 12 Jan 2012 20:40:11 +0000 Subject: [Bug 3472316] Document the destructive semantics of [fconfigure -error] on sockets. --- doc/socket.n | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/socket.n b/doc/socket.n index e2c4759..e3087c9 100644 --- a/doc/socket.n +++ b/doc/socket.n @@ -157,6 +157,9 @@ This option gets the current error status of the given socket. This is useful when you need to determine if an asynchronous connect operation succeeded. If there was an error, the error message is returned. If there was no error, an empty string is returned. + +Note that the error status is reset by the read operation; this mimics +the underlying getsockopt(SO_ERROR) call. .TP \fB\-sockname\fR . -- cgit v0.12