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

App gets stuck on line 1450 of SSLService.swift, if our web host doesn't send the SSL Handshake data over the socket #103

Closed
MP2E opened this issue Mar 26, 2024 · 0 comments

Comments

@MP2E
Copy link

MP2E commented Mar 26, 2024

I use this library and BlueSocket to communicate with a Java server running on a separate machine, but I noticed something strange. When the Java server had its SSL certificates updated while the web server was still running, it wouldn't send data during the SSL handshake like it was supposed to. A restart of the server fixed the problem.

The issue, is that our client applications try to automatically log in via the server, and instead of just failing and reporting the failure to us, the apps would hang and become unresponsive until force closed, with the debugger showing us it gets stuck in SSLService.swift at line 1450, which is a read.

Is there a way to make this read timeout after say, 15 seconds? That would solve my entire issue.

@MP2E MP2E closed this as completed Apr 1, 2024
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

1 participant