Skip to content

Commit f853afe

Browse files
committed
Merge PR #425
2 parents 668ed0d + 1e703c4 commit f853afe

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Network/Socket/Types.hsc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,10 @@ unsafeFdSocket (Socket ref _) = readIORef ref
130130
-- at the given place in the sequence of IO actions. This function can be
131131
-- used in conjunction with 'unsafeFdSocket' to guarantee that the file
132132
-- descriptor is not prematurely freed.
133+
--
134+
-- > fd <- unsafeFdSocket sock
135+
-- > -- using fd with blocking operations such as accept(2)
136+
-- > touchSocket sock
133137
touchSocket :: Socket -> IO ()
134138
touchSocket (Socket ref _) = touch ref
135139

0 commit comments

Comments
 (0)