Test attached. The documentation states that SSL_library_init() is not reentrant and the current implementation does not handle that resulting in random crashes during the reinit.
Development on this project is stopping because it's been merged into Haxe core. I would recommend switching over to that version. If the problem persists then file an issue over there.
Test attached. The documentation states that SSL_library_init() is not reentrant and the current implementation does not handle that resulting in random crashes during the reinit.
https://www.openssl.org/docs/manmaster/ssl/SSL_library_init.html
Script.txt
I made a workaround, static flag in the Socket.hx sys/ssl/Socket.hx:
Plus a single google.com request at the start of the application to make sure that the initialization is handled correctly.
The resulting changes work fine except i receive this exception very often:
This exception is produced by hxssl_SSL_recv() calling SSL_read() but I'm not sure what to do with this.