Skip to content

Commit a2971e7

Browse files
authored
Merge pull request ruby#139 from rhenium/ky/ssl-sysread-dont-check-ssl-pending
ssl: remove useless call to rb_thread_wait_fd()
2 parents 4a8e85e + 99f85dd commit a2971e7

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

ext/openssl/ossl_ssl.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1700,8 +1700,6 @@ ossl_ssl_read_internal(int argc, VALUE *argv, VALUE self, int nonblock)
17001700
io = rb_attr_get(self, id_i_io);
17011701
GetOpenFile(io, fptr);
17021702
if (ssl_started(ssl)) {
1703-
if(!nonblock && SSL_pending(ssl) <= 0)
1704-
rb_thread_wait_fd(FPTR_TO_FD(fptr));
17051703
for (;;){
17061704
nread = SSL_read(ssl, RSTRING_PTR(str), RSTRING_LENINT(str));
17071705
switch(ssl_get_error(ssl, nread)){

0 commit comments

Comments
 (0)