File tree 2 files changed +13
-9
lines changed
2 files changed +13
-9
lines changed Original file line number Diff line number Diff line change 737
737
; ; create a new outbound HTTP2 stream/channel
738
738
(-> (.open h2-bootstrap)
739
739
netty/wrap-future
740
- (d/chain' (fn [^Http2StreamChannel chan]
740
+ (d/chain' (fn [^Http2StreamChannel out-chan]
741
+ (log/debug " New outbound HTTP/2 channel available." )
742
+
741
743
(http2/setup-stream-pipeline
742
- (.pipeline chan)
743
- (http2-client-handler chan resp raw-stream? response-buffer-size)
744
+ (.pipeline out- chan)
745
+ (http2-client-handler out- chan resp raw-stream? response-buffer-size)
744
746
is-server?
745
747
proxy-options
746
748
logger
747
749
pipeline-transform)
748
- ch))
749
- (d/chain' (fn [^Http2StreamChannel chan]
750
- (log/debug " New outbound HTTP/2 channel ready." )
750
+ out-chan))
751
+ (d/chain' (fn [^Http2StreamChannel out-chan]
752
+ (log/debug " New outbound HTTP/2 channel's pipeline configured." )
753
+
751
754
(if (multipart/is-multipart? req)
752
755
(let [emsg " Multipart requests are not yet supported in HTTP/2"
753
756
ex (ex-info emsg {:req req})]
754
757
(log/error ex emsg)
755
758
(throw ex))
756
- #_(@multipart-req-preprocess (assoc req :ch chan)) ; switch to HTTP1 code for multipart
757
- (http2/send-request chan req' resp))))
759
+ #_(@multipart-req-preprocess (assoc req :ch out- chan)) ; switch to HTTP1 code for multipart
760
+ (http2/send-request out- chan req' resp))))
758
761
(d/catch' (fn [^Throwable t]
759
762
(log/error t " Unable to open outbound HTTP/2 stream channel" )
760
763
(d/error! resp t)
Original file line number Diff line number Diff line change 338
338
(send-message ch headers body *default-chunk-size* file/*default-file-chunk-size*))
339
339
([^Http2StreamChannel ch ^Http2Headers headers body chunk-size file-chunk-size]
340
340
(log/trace " http2 send-message" )
341
+
341
342
(let [^Http2FrameStream stream (.stream ch)]
342
343
(try
343
344
(cond
414
415
(defn send-request
415
416
[^Http2StreamChannel ch req response]
416
417
(log/trace " http2 send-request fired" )
417
-
418
+
418
419
(try
419
420
(let [body (if (= :trace (:request-method req))
420
421
; ; RFC #7231 4.3.8. TRACE
You can’t perform that action at this time.
0 commit comments