Comments (3)
Is it enough to just call cc.decrStreamReservations()
? Basically instead of doing a roundTrip here, I want to just return information about the TLS Connection - so I haven't called cc.RoundTrip
yet, just acquired a connection via GetClientConn
.
from req.
It's just an internal implementation, which is based on golang.org/x/net/http2
, you have no way to call it explicitly.
What specific scenarios would require controlling client connection reservation?
from req.
Yes, I am already using an modified version of imroc/req, so this being internal functions/methods is no problem for me.
What specific scenarios would require controlling client connection reservation?
I have added an function PeekTLS to T1 and T2. Its usefull in an SSL MITM scenarios, where one wants to copy some characteristics of the original cert to the "faked" one (e.g. so that its expired when the original one is, etc).
Basically instead of calling roundTrip here, PeekTLS just returns information about the TLS Connection. But since cc.RoundTrip
is not called, I want to unreserve it.
For T1 I just use t.tryPutIdleConn(pconn)
- I think this is correct?
from req.
Related Issues (20)
- 请问怎么设置请求头变量大写不转换成小写 HOT 2
- 使用h2协议,设置随机TLS指纹的时候出现问题:http2: unexpected ALPN protocol ""; want "h2" HOT 1
- 希望增加允许设置查询参数的排序
- invalid memory address or nil pointer dereference
- connect: cannot assign requested address 如何优化 HOT 2
- How do I set a timeout for a get or post request? For example, if no data is returned within 3 seconds, it is considered a failure HOT 1
- digest认证,获取body为nil,怎么能获取到数据 HOT 8
- Will it support socks5h HOT 1
- Proxy over HTTP3 doesn't work HOT 1
- HTTP3 doesn't work even when forced?
- Add SECURITY.md HOT 5
- Imroc can't read response correctly HOT 7
- 使用ImpersonateChrome方法绕不过cf的5秒盾 HOT 2
- info.FileSize empty in SetUploadCallback() when using SetFileReader() HOT 2
- retry之后的cookies会重复追加 HOT 2
- 使用python请求正常,使用req请求报403错误 HOT 1
- 怎么保证header不被添加内容呢 HOT 5
- cookies问题 HOT 2
- digest: algorithm is not supported HOT 2
- 如何设置req强行使用tcp4/tcp6请求? HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from req.