> I've been testing Synapse's own httpsserv-demo. It works well on
> Windows, but on Linux it appears not to be thread-safe and crashes
> badly.

First idea - are you sure if is write/writeln call thread safe? I 
remember funny error in some old FPC when writeln was called inside 
thread. It reset socket LastError and Synapse was mangled. So, try to 
call wrie/writeln by some thread-safe way.

Otherwise it's looks like some multithreaded problem inside Openssl. 
OpenSSL provides some hooks for external locks. But synapse using it! 
See InitLocks procedure inside ssl_openssl_lib.pas.

Please, check:

- if this procedure is called. (If not, then shared library does not 
export needed functions.)

- if is called, check TCriticalSection class implementation for your 
platform.



-- 
Lukas Gebauer.

http://synapse.ararat.cz/ - Ararat Synapse - TCP/IP Lib.
http://geoget.ararat.cz/ - Geocaching solution


------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to