@@ -43,7 +43,6 @@ import qualified Data.PEM as PEM
4343import Data.Conduit.Network (sourceSocket, sinkSocket, acceptSafe)
4444import Data.Maybe (fromMaybe)
4545import qualified Data.IORef as I
46−import Crypto.Random.AESCtr (makeSystem)
4746import Control.Exception (Exception, throwIO)
4847import Data.Typeable (Typeable)
4948import qualified Data.Conduit.Binary as CB
@@ -139,13 +138,14 @@ runTLSSocket TLSSettings {..} set sock app = do
139138 let conn = Connection
140139 { connSendMany = TLS.sendData ctx . L.fromChunks
141140 , connSendAll = TLS.sendData ctx . L.fromChunks . return
142− , connSendFile = \fp offset len _th headers _cleaner -> do
141+ , connSendFile = \fp offset len _th headers -> do
143142 TLS.sendData ctx $ L.fromChunks headers
144143 C.runResourceT $ sourceFileRange fp (Just offset) (Just len) C.$$ CL.mapM_ (TLS.sendData ctx . L.fromChunks . return)
145144 , connClose =
146145 TLS.bye ctx `finally`
147146 TLS.contextClose ctx
148147 , connRecv = TLS.recvData ctx
148+ , connSendFileOverride = NotOverride
149149 }
150150 return conn
151151 else