summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoe <joe@jerkface.net>2017-11-19 13:50:06 -0500
committerjoe <joe@jerkface.net>2017-11-19 13:50:06 -0500
commit9588e6932050444e298ad89bd8d2b273fc8b428c (patch)
treeeffc5f2c2309cb0d55ed7a4f53d174e2003d6ff3
parentb50f175d37c8769db9e66948194328b5fc8471c7 (diff)
Spelling in comments.
-rw-r--r--src/Network/StreamServer.hs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Network/StreamServer.hs b/src/Network/StreamServer.hs
index 34b9388e..7fecc7aa 100644
--- a/src/Network/StreamServer.hs
+++ b/src/Network/StreamServer.hs
@@ -98,7 +98,7 @@ withSession :: (RestrictedSocket -> Int -> Handle -> IO ()) -> ServerConfig
98withSession session = ServerConfig warnStderr session 98withSession session = ServerConfig warnStderr session
99 99
100-- | Launch a thread to listen at the given bind address and dispatch 100-- | Launch a thread to listen at the given bind address and dispatch
101-- to session handler threads on every incomming connection. Supports 101-- to session handler threads on every incoming connection. Supports
102-- IPv4 and IPv6, TCP and unix sockets. 102-- IPv4 and IPv6, TCP and unix sockets.
103-- 103--
104-- The returned handle can be used with 'quitListening' to terminate the 104-- The returned handle can be used with 'quitListening' to terminate the
@@ -124,9 +124,9 @@ streamServer cfg addr = do
124 acceptLoop cfg sock 0 124 acceptLoop cfg sock 0
125 return (ServerHandle sock thread) 125 return (ServerHandle sock thread)
126 126
127-- | Not exported. This, combined with 'acceptException' form a mutually recursive 127-- | Not exported. This, combined with 'acceptException' form a mutually
128-- loop that handles incomming connections. To quit the loop, the socket must be 128-- recursive loop that handles incoming connections. To quit the loop, the
129-- closed by 'quitListening'. 129-- socket must be closed by 'quitListening'.
130acceptLoop :: ServerConfig -> Socket -> Int -> IO () 130acceptLoop :: ServerConfig -> Socket -> Int -> IO ()
131acceptLoop cfg sock n = handle (acceptException cfg n sock) $ do 131acceptLoop cfg sock n = handle (acceptException cfg n sock) $ do
132 con <- accept sock 132 con <- accept sock