-
Notifications
You must be signed in to change notification settings - Fork 77
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
Collisions on SSL_connect (openssl.nim) #464
Comments
Changed code - nimx/image instead of nimx/window: import httpclient
import nimx/image
var client = newHttpClient()
discard client.get("https://account.api.here.com/oauth2/token")
Getting the same error:14004410:SSL routines:CONNECT_CR_SRVR_HELLO:sslv3 alert handshake failure [SslError] I used Wireshark to recognize what happens on hand shake: with nimx/image Client Hello sends only 3 cipher suites but on server (account.api.here.com) don't exist these suites therefore the server doesn't send Hello Client. But Line 633 in 4034e61
to: when not asyncResourceLoad:
then after compiling Client Hello sends 9 (!) cipher suites and in this case the server sends Hello Client successful. var ctx: ImageLoadingCtx
ctx.new()
ctx.url = url
ctx.completionCallback = handler
when not loadAsyncTextureInMainThread:
let curWnd = glGetCurrentWindow()
if threadCtx.isNil:
let curCtx = glGetCurrentContext()
threadCtx = glCreateContext(curWnd)
discard glMakeCurrent(curWnd, curCtx)
ctx.glCtx = threadCtx
doAssert(not ctx.glCtx.isNil)
ctx.wnd = curWnd
GC_ref(ctx)
if loadingQueue.isNil:
loadingQueue = newWorkerQueue(1)
loadingQueue.addTask(loadResourceThreaded, cast[pointer](ctx))
|
That's a mysterious one, and thanks for looking into that. Unfortunately I can't reproduce it neither on Linux, nor Big Sur 11.1. Moreover I don't have any clue why that could happen. Nimx images use https://github.com/yglukhov/async_http_request to load images over https, but inspecting that module I see no reason for it to interfere with the default httpclient's one. So you might want to look that way. |
Simple code:
Getting error:14004410:SSL routines:CONNECT_CR_SRVR_HELLO:sslv3 alert handshake failure [SslError]
because ret == 0 after:
ret = SSL_connect(socket.sslHandle)
but should be ret == 1But this error happens only in case (3 conditions together):
Please, any suggestions/workaround...
The text was updated successfully, but these errors were encountered: