Skip to content

Commit

Permalink
Document more strongly that connections should be closed explicitly.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.r-project.org/R/trunk@85685 00db46b3-68df-0310-9c12-caf00c1e9a41
  • Loading branch information
kalibera committed Dec 14, 2023
1 parent 9fb18da commit d0416e9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/library/base/man/connections.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,10 @@ socketTimeout(socket, timeout = -1)
is available only for some types of connections (e.g., pipes, files and
fifos): typically zero values indicate success. Negative values will
result in a warning; if writing, these may indicate write failures and should
not be ignored.
not be ignored. Connections should be closed explicitly when finished
with to avoid wasting resources and to reduce the risk that some buffered
data in output connections would be lost (see \link{\code{on.exit()}} for
how to run code also in case of error).

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

0 comments on commit d0416e9

Please sign in to comment.