diff options
Diffstat (limited to 'Presence')
-rw-r--r-- | Presence/Server.hs | 2 | ||||
-rw-r--r-- | Presence/XMPPServer.hs | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/Presence/Server.hs b/Presence/Server.hs index 24cd5bce..6c2d1b5a 100644 --- a/Presence/Server.hs +++ b/Presence/Server.hs | |||
@@ -539,7 +539,7 @@ newConnection server params conkey u h inout = do | |||
539 | -} | 539 | -} |
540 | utc <- getCurrentTime | 540 | utc <- getCurrentTime |
541 | let utc' = formatTime defaultTimeLocale "%s" utc | 541 | let utc' = formatTime defaultTimeLocale "%s" utc |
542 | warn $ "ping:IDLE " <> bshow utc' | 542 | -- warn $ "ping:IDLE " <> bshow utc' |
543 | atomically $ announce ((conkey,u),RequiresPing) | 543 | atomically $ announce ((conkey,u),RequiresPing) |
544 | handleEOF conkey u mvar newCon | 544 | handleEOF conkey u mvar newCon |
545 | 545 | ||
diff --git a/Presence/XMPPServer.hs b/Presence/XMPPServer.hs index b9719fa4..dd693b8c 100644 --- a/Presence/XMPPServer.hs +++ b/Presence/XMPPServer.hs | |||
@@ -24,6 +24,7 @@ module XMPPServer | |||
24 | ) where | 24 | ) where |
25 | 25 | ||
26 | import Debug.Trace | 26 | import Debug.Trace |
27 | import System.IO (hFlush,stdout) | ||
27 | import Control.Monad.Trans.Resource (runResourceT) | 28 | import Control.Monad.Trans.Resource (runResourceT) |
28 | import Control.Monad.Trans (lift) | 29 | import Control.Monad.Trans (lift) |
29 | import Control.Monad.IO.Class (MonadIO, liftIO) | 30 | import Control.Monad.IO.Class (MonadIO, liftIO) |
@@ -235,10 +236,10 @@ peerKeyToResolvedName k@(PeerKey { callBackAddress=addr }) = do | |||
235 | 236 | ||
236 | 237 | ||
237 | wlog :: String -> IO () | 238 | wlog :: String -> IO () |
238 | wlog s = putStrLn s | 239 | wlog s = putStrLn s >> hFlush stdout |
239 | 240 | ||
240 | wlogb :: ByteString -> IO () | 241 | wlogb :: ByteString -> IO () |
241 | wlogb s = Strict8.putStrLn s | 242 | wlogb s = Strict8.putStrLn s >> hFlush stdout |
242 | 243 | ||
243 | xmlStream :: ReadCommand -> WriteCommand -> ( Source IO XML.Event | 244 | xmlStream :: ReadCommand -> WriteCommand -> ( Source IO XML.Event |
244 | , Sink (Flush XML.Event) IO () ) | 245 | , Sink (Flush XML.Event) IO () ) |