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捕获也会直接导致程序退出 #380

Open
herozzm opened this issue Aug 11, 2024 · 1 comment

Comments

@herozzm
Copy link

herozzm commented Aug 11, 2024

req: v3.43.7
golang: 1.22.6

已经设置了跳过证书验证,但是未解决问题
程序直接被panic退出,提示:panic: tls: LoadSessionCoordinator.onEnterLoadSessionCheck failed: session is set and locked, no call to loadSession is allowed

访问的地址:https://mdst.org.cn/index.php?c=category&id=27
提示需要凭据

问题:

  • 为什么会出现这个错误?应该怎么避免?
  • 为什么无法捕获直接导致整个程序退出?
@herozzm herozzm changed the title 访问某种需要证书凭据的网站,做了panic捕获的前提直接导致程序退出 访问某种需要证书凭据的网站,做了panic捕获的也会直接导致程序退出 Aug 11, 2024
@herozzm herozzm changed the title 访问某种需要证书凭据的网站,做了panic捕获的也会直接导致程序退出 访问某种需要证书凭据的网站,做了panic捕获也会直接导致程序退出 Aug 11, 2024
@XiaoK29
Copy link
Contributor

XiaoK29 commented Sep 6, 2024

req: v3.43.7 golang: 1.22.6

已经设置了跳过证书验证,但是未解决问题 程序直接被panic退出,提示:panic: tls: LoadSessionCoordinator.onEnterLoadSessionCheck failed: session is set and locked, no call to loadSession is allowed

访问的地址:https://mdst.org.cn/index.php?c=category&id=27 提示需要凭据

问题:

  • 为什么会出现这个错误?应该怎么避免?
  • 为什么无法捕获直接导致整个程序退出?

能提供一个最小实现的repo吗?

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