Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Panic in random moment #275

Open
byMonaco opened this issue Dec 4, 2024 · 4 comments
Open

Panic in random moment #275

byMonaco opened this issue Dec 4, 2024 · 4 comments

Comments

@byMonaco
Copy link

byMonaco commented Dec 4, 2024

panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x8 pc=0xaf2ef9]

goroutine 61875123 [running]:
[github.com/Noooste/azuretls-client.(*Session).initTransport.(*Session).initHTTP1.func1({0x10687e0](https://github.com/Noooste/azuretls-client.(*Session).initTransport.(*Session).initHTTP1.func1(%7B0x10687e0)?, 0x0?}, {0xc0cb1e1a08?, 0x7d9d11?}, {0xc10b5b9908, 0x12})
C:/Users/Bender/go/pkg/mod/github.com/!noooste/[email protected]/transport.go:33 +0x59
[github.com/Noooste/fhttp.(*Transport).customDialTLS(0xc07da9cc40](https://github.com/Noooste/fhttp.(*Transport).customDialTLS(0xc07da9cc40)?, {0xcbe208?, 0xc0d3928070?}, {0xbfff7b?, 0x73a677?}, {0xc10b5b9908?, 0x6d6a78?})
C:/Users/Bender/go/pkg/mod/github.com/!noooste/[email protected]/transport.go:1314 +0x4a
[github.com/Noooste/fhttp.(*Transport).dialConn(0xc0c18531e0](https://github.com/Noooste/fhttp.(*Transport).dialConn(0xc0c18531e0), {0xcbe208, 0xc0d3928070}, {{}, 0x0, {0xc2318c, 0x5}, {0xc10b5b9908, 0x12}, 0x0})
C:/Users/Bender/go/pkg/mod/github.com/!noooste/[email protected]/transport.go:1580 +0x3ee
[github.com/Noooste/fhttp.(*Transport).dialConnFor(0xc0c18531e0](https://github.com/Noooste/fhttp.(*Transport).dialConnFor(0xc0c18531e0), 0xc0967cbd90)
C:/Users/Bender/go/pkg/mod/github.com/!noooste/[email protected]/transport.go:1446 +0xb1
created by github.com/Noooste/fhttp.(*Transport).queueForDial in goroutine 3418
C:/Users/Bender/go/pkg/mod/github.com/!noooste/[email protected]/transport.go:1415 +0x3c9

In last version same problem, but i don't use last version bc it very slow. 1.5.0+ versions send 2 requests, but need send only one. U can also test it with Charles proxy or other proxy, like Fiddler.

@Noooste
Copy link
Owner

Noooste commented Dec 8, 2024

Hello, thank you for reporting this problem, could you provide a code so that I can test on my side.
Does this panic occur often or rarely?

@byMonaco
Copy link
Author

Hello, thank you for reporting this problem, could you provide a code so that I can test on my side. Does this panic occur often or rarely?

Just send 5M-20M GET or POST requests throw proxy. Its random time

@Noooste
Copy link
Owner

Noooste commented Dec 21, 2024

Hello, thank you for your report!
I've uploaded a new version: v1.6.0.
Could you please update the package and let me know if you still encounter this error?

@byMonaco
Copy link
Author

byMonaco commented Feb 3, 2025

Thx. I am testing it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants