Skip to content
This repository
Browse code

get rid of spurious write error logging

  • Loading branch information...
commit 6e758cb00a3d450734571dabf569777b3d82b108 1 parent bb0657f
Zach Tellman authored
4 src/aleph/http/server.clj
@@ -99,7 +99,9 @@
99 99 (timeout-response)
100 100 (error-response))]
101 101 (write-to-channel netty-channel response (not (:keep-alive? request))))
102   - (respond netty-channel options (first response) (second response))))))
  102 + (do
  103 + (respond netty-channel options (first response) (second response))
  104 + nil)))))
103 105 (fn [_] (.close netty-channel))))
104 106
105 107 (enqueue ch request)))
1  src/aleph/http/server/responses.clj
@@ -117,6 +117,7 @@
117 117 (run-pipeline (let [result (write-to-channel netty-channel initial-response false)]
118 118 (enqueue returned-result result)
119 119 result)
  120 + :error-handler (fn [_])
120 121 (fn [_]
121 122 (receive-in-order
122 123 (map*
11 src/aleph/netty.clj
@@ -263,12 +263,13 @@
263 263 [^Channel netty-channel msg close?
264 264 & {close-callback :on-close write-callback :on-write host :host port :port}]
265 265 (if msg
266   - (run-pipeline
267   - (io!
268   - (if (and host port)
269   - (.write netty-channel msg (InetSocketAddress. ^String host (int port)))
270   - (.write netty-channel msg)))
  266 + (run-pipeline nil
271 267 :error-handler (fn [_])
  268 + (fn [_]
  269 + (io!
  270 + (if (and host port)
  271 + (.write netty-channel msg (InetSocketAddress. ^String host (int port)))
  272 + (.write netty-channel msg))))
272 273 wrap-netty-channel-future
273 274 (fn [_]
274 275 (when write-callback

0 comments on commit 6e758cb

Please sign in to comment.
Something went wrong with that request. Please try again.