-
Notifications
You must be signed in to change notification settings - Fork 79
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
Error when using SSL #196
Comments
An update on this issue. I am getting some failures with an issue that seems directly connected to the above SSL usage with my Kitura-based server. When I run the server on MacOS, using self-signing certificates (and following the technique given here https://developer.ibm.com/swift/2016/09/22/securing-kitura-part-1-enabling-ssltls-on-your-swift-server/), I get the above kind of error (i.e., errSSLClosedAbort). Plus, with certain of my endpoints my call to RouterResponse's When I run the server on Ubuntu 16.04 Linux, I run into a similar but even more severe situation. These same I should mention, I'm using an iOS Swift-based client with URLSession's to do the downloads and other server endpoint communication. This is an open source project, and I could point you to the code. So far, I'm just trying to characterize the problem and haven't tried creating a simpler instance of the problem. |
Further update. I've now tried this with a CA Authority signed SSL certificate (from https://letsencrypt.org). The same basic issue occurs. When I'm doing multiple successive of these in a row, the server thread blocks on a GET download of data. This is where it's failing in my server: https://github.com/crspybits/SyncServerII/blob/master/Server/Sources/Server/ServerSetup.swift#L146 I'm running the following test on my iOS client: Also, and I'm not sure how/if this is related, I am getting lots of the error: |
Still having the same kind of issue, and I've detailed progress here: |
It looks like I've got a work-around for this issue. Take a look at |
I switched over to using Kitura with SSL (and self-signed certificates). I'm getting no errors specific to my server, but I do get reports of:
[2017-05-19T20:50:50.263-06:00] [ERROR] [IncomingSocketHandler.swift:148 handleRead()] Read from socket (file descriptor 8) failed. Error = Error code: -9806(0x-264E), ERROR: SSLRead, code: -9806, reason: errSSLClosedAbort.
This is not causing failures, but doesn't look good.
Suggestions?
Thanks,
Chris.
The text was updated successfully, but these errors were encountered: