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

[Bug] v5.2.1中TCPPackClient连接成功SSLPackServer #40

Closed
mangox opened this issue Mar 26, 2018 · 3 comments
Closed

[Bug] v5.2.1中TCPPackClient连接成功SSLPackServer #40

mangox opened this issue Mar 26, 2018 · 3 comments

Comments

@mangox
Copy link

mangox commented Mar 26, 2018

HPSocket版本
v5.2.1
Bug描述
无论有无证书,TCPPackClient居然可以成功连接上SSLPackServer;理论上握手这一步都不能完成。当client给server发消息后,server才能发生错误并中断连接。
潜在影响
当用户从TCPPackClient迁移到SSLPackClient时,一些老的TCPPackClient仍然可以成功连接上SSLPackServer。
Bug截图
hpsocket_bug

@mangox
Copy link
Author

mangox commented Mar 28, 2018

@ldcsaa 老哥,看一下这个是不是一个问题。还是我SSL初始化时候设置的SSLVerifyMode 有问题。
SSLPeer | SSLFailIfNoPeerCert

@ldcsaa
Copy link
Owner

ldcsaa commented Mar 29, 2018

连接是TCP层的事,跟 SSL 没有一毛钱关系~
例如你可以 telnet www.baidu.com 443

@ldcsaa ldcsaa closed this as completed Mar 29, 2018
@mangox
Copy link
Author

mangox commented Mar 29, 2018

嗯,我原也是这么想的。。。多谢大佬解惑

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