Michal Trojnara Michal.Trojnara@mobi-com.net wrote on 31.05.2007 20:48:08:
An alternative workaround would be changing: continue; to: sleep(1); continue;
If OpenSSL has been compiled with IBM cc, most new stunnel connections then result in EAGAIN once. sleep(1) seems to prevent an endless loop, but most requests now need at least one second to be processed.
Compiling OpenSSL with IBM xlc_r, as you proposed, is definitely the better solution and prevents the EAGAIN errors.