net/http: http.Client send reqeust via https cause memory leak #66401
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Milestone
Go version
go verison go1.20.13 windows/amd64
Output of
go env
in your module/workspace:What did you do?
My project use net/http Client to send request via https to server,
build env is windows10 use
go build -buildmode=c-shared
to build dll and run on windows7 PC.when windows7 PC local certificate donot have server certificate's Root CA certificate , then return error is
tls: failed to verify certificate: x509: certificate signed by unknown author
At this time many request be sent to server, and the progream memory increase fast to 1GB.
I think maybe the http.Client send reqeust via https and No RootCA certificate cause memory leak.
What did you see happen?
My project use net/http Client to send request via https to server,
build env is windows10 use
go build -buildmode=c-shared
to build dll and run on windows7 PC.when windows7 PC local certificate donot have server certificate's Root CA certificate , then return error is
tls: failed to verify certificate: x509
At this time many request be sent to server, and the progream memory increase fast to 1GB.
I think maybe the http.Client send reqeust via https and No RootCA certificate cause memory leak.
What did you expect to see?
Can this be fixed?
The text was updated successfully, but these errors were encountered: