X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;f=Network%2FHTTP%2FLucu%2FHttpd.hs;fp=Network%2FHTTP%2FLucu%2FHttpd.hs;h=c8a21b7d256d8c0d7128205c18e747dd0b52246f;hb=46ea3a688edea377e83794d1387f3f2d203bb0c6;hp=595403abd0364f1a2e70c79088d9138d38eeaf90;hpb=64129c18cf0eeb0e96d83882be14a8d96f4c2892;p=Lucu.git diff --git a/Network/HTTP/Lucu/Httpd.hs b/Network/HTTP/Lucu/Httpd.hs index 595403a..c8a21b7 100644 --- a/Network/HTTP/Lucu/Httpd.hs +++ b/Network/HTTP/Lucu/Httpd.hs @@ -20,16 +20,11 @@ import Network.HTTP.Lucu.RequestReader import Network.HTTP.Lucu.Resource.Tree import Network.HTTP.Lucu.ResponseWriter import Network.HTTP.Lucu.SocketLike as SL -import System.Posix.Signals -- |This is the entry point of Lucu httpd. It listens to a socket and -- waits for clients. 'runHttpd' never stops by itself so the only way -- to stop it is to raise an exception in the thread running it. -- --- Note that 'runHttpd' automatically makes SIGPIPE be ignored by --- calling @'installHandler' 'sigPIPE' 'Ignore' 'Nothing'@. This can --- hardly cause a problem though. --- -- Example: -- -- > {-# LANGUAGE OverloadedStrings #-} @@ -51,8 +46,7 @@ import System.Posix.Signals runHttpd ∷ Config → ResTree → [FallbackHandler] → IO () runHttpd cnf tree fbs = withSocketsDo $ - do void $ installHandler sigPIPE Ignore Nothing - let launchers + do let launchers = catMaybes [ do scnf ← cnfSSLConfig cnf addr ← cnfServerV4Addr cnf