DescriptionRefactor pooled socket request code to prepare for implementation of pretend-to-preconnect.
For pretend-to-preconnect details, please see BUG=235361
I am trying to resolve 2 major issues:
1. InitSocketPoolHelper is responsible for too many things:
InitSocketPoolHelper is a all-in-one function which does all of the following:
- make connection_group identifier string
- decide which pool to use and make corresponding SocketParams
- call RequestSocketForPool/RequestSocketsForPool depending on the context
This patch separates the previous InitSocketPoolHelper function into the below components:
- HostPortPairFromUrlForSession
- ConnectionGroupForUrl
- InvokeWithSocketParamsAndPool
- RequestSocketForPool
- RequestSocketsForPool
Also, I tried to limit the scope of auto variables for clarity.
2. SSLSocketParams constructor accepting three SocketParams at once.
SSLSocketParams constructor accepts all kind of SocketParams at once, but
only one of them is used per instance.
BUG=235361
TEST=net_unittests
Patch Set 1 #
Total comments: 2
Patch Set 2 : don't overload SSLSocketParams c-tor #
Total comments: 1
Messages
Total messages: 9 (0 generated)
|