Skip to content

Commit

Permalink
Merge pull request #139 from rhenium/ky/ssl-sysread-dont-check-ssl-pe…
Browse files Browse the repository at this point in the history
…nding

ssl: remove useless call to rb_thread_wait_fd()
  • Loading branch information
rhenium authored Aug 25, 2017
2 parents 4a8e85e + 99f85dd commit a2971e7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions ext/openssl/ossl_ssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1700,8 +1700,6 @@ ossl_ssl_read_internal(int argc, VALUE *argv, VALUE self, int nonblock)
io = rb_attr_get(self, id_i_io);
GetOpenFile(io, fptr);
if (ssl_started(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)){
Expand Down

0 comments on commit a2971e7

Please sign in to comment.