Skip to content

Commit 7800d13

Browse files
committed
better naming
1 parent 4d6eeb1 commit 7800d13

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Network/Socket/Shutdown.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ recvEOF :: Socket -> Int -> Ptr Word8 -> IO ()
7474
recvEOF s tmout0 buf = do
7575
mevmgr <- Ev.getSystemEventManager
7676
case mevmgr of
77-
Nothing -> recvEOFloop s tmout0 buf
77+
Nothing -> recvEOFtimeout s tmout0 buf
7878
Just _ -> recvEOFevent s tmout0 buf
7979
#else
8080
recvEOF = recvEOFloop
@@ -85,8 +85,8 @@ recvEOF = recvEOFloop
8585
bufSize :: Int
8686
bufSize = 1024
8787

88-
recvEOFloop :: Socket -> Int -> Ptr Word8 -> IO ()
89-
recvEOFloop s tmout0 buf = void $ timeout tmout0 $ recvBuf s buf bufSize
88+
recvEOFtimeout :: Socket -> Int -> Ptr Word8 -> IO ()
89+
recvEOFtimeout s tmout0 buf = void $ timeout tmout0 $ recvBuf s buf bufSize
9090

9191
#if !defined(mingw32_HOST_OS)
9292
data Wait = MoreData | TimeoutTripped

0 commit comments

Comments
 (0)