I'm using Go to implement an http client and squid as a forward proxy to 
send requests to remote servers. Things goes well when using http/1.1 via 
proxy or http/1.1, http2 without proxy, however, while using http2 client 
via proxy, most of the connections were closed immediately and only one or 
two were kept.

Not sure it's my bad code or what. The idleConn configuration was enabled 
on the http transport. Thanks in advance.

Since there are many code blocks, I post a question including details on 
StackOverflow. Is there anyone who could give some suggestions that what 
should I do to figure it out? Thanks.

go - Golang: http2 client immediately close connections via proxy while 
idleConn was enabled - Stack Overflow 
<https://stackoverflow.com/questions/70234961/golang-http2-client-immediately-close-connections-via-proxy-while-idleconn-was>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/f1b1d856-1108-4ba3-a4e7-e9d8f26fee13n%40googlegroups.com.

Reply via email to