Bug #13935 » ruby_2_3-0002-ssl-remove-useless-call-to-rb_thread_wait_fd.patch
ext/openssl/ossl_ssl.c | ||
---|---|---|
GetSSL(self, ssl);
|
||
GetOpenFile(ossl_ssl_get_io(self), fptr);
|
||
if (ssl) {
|
||
if(!nonblock && SSL_pending(ssl) <= 0)
|
||
rb_thread_wait_fd(FPTR_TO_FD(fptr));
|
||
for (;;){
|
||
nread = SSL_read(ssl, RSTRING_PTR(str), RSTRING_LENINT(str));
|
||
switch(ssl_get_error(ssl, nread)){
|