Skip to content

Commit d0416e9

Browse files
author
kalibera
committed
Document more strongly that connections should be closed explicitly.
git-svn-id: https://svn.r-project.org/R/trunk@85685 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent 9fb18da commit d0416e9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/library/base/man/connections.Rd

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,10 @@ socketTimeout(socket, timeout = -1)
297297
is available only for some types of connections (e.g., pipes, files and
298298
fifos): typically zero values indicate success. Negative values will
299299
result in a warning; if writing, these may indicate write failures and should
300-
not be ignored.
300+
not be ignored. Connections should be closed explicitly when finished
301+
with to avoid wasting resources and to reduce the risk that some buffered
302+
data in output connections would be lost (see \link{\code{on.exit()}} for
303+
how to run code also in case of error).
301304

302305
\code{isOpen} returns a logical value, whether the connection is
303306
currently open.

0 commit comments

Comments
 (0)