diff options
Diffstat (limited to 'src/Network')
-rw-r--r-- | src/Network/KRPC/Protocol.hs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Network/KRPC/Protocol.hs b/src/Network/KRPC/Protocol.hs index 32065ff7..71f5b773 100644 --- a/src/Network/KRPC/Protocol.hs +++ b/src/Network/KRPC/Protocol.hs | |||
@@ -220,9 +220,8 @@ maxMsgSize :: Int | |||
220 | maxMsgSize = 64 * 1024 -- bench: max UDP MTU | 220 | maxMsgSize = 64 * 1024 -- bench: max UDP MTU |
221 | {-# INLINE maxMsgSize #-} | 221 | {-# INLINE maxMsgSize #-} |
222 | 222 | ||
223 | -- TODO eliminate toStrict | ||
224 | sendMessage :: BEncode msg => msg -> KRemoteAddr -> KRemote -> IO () | 223 | sendMessage :: BEncode msg => msg -> KRemoteAddr -> KRemote -> IO () |
225 | sendMessage msg addr sock = sendAllTo sock (LB.toStrict (encoded msg)) addr | 224 | sendMessage msg addr sock = sendManyTo sock (LB.toChunks (encoded msg)) addr |
226 | {-# INLINE sendMessage #-} | 225 | {-# INLINE sendMessage #-} |
227 | 226 | ||
228 | recvResponse :: KRemote -> IO (Either KError KResponse) | 227 | recvResponse :: KRemote -> IO (Either KError KResponse) |