1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

io.c: remove socket check

* io.c (nogvl_copy_stream_sendfile): remove socket check
  [ruby-core:59856][Feature #9427]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
normal 2014-01-29 09:13:08 +00:00
parent 0cee7f8e2f
commit c5f2c66270
2 changed files with 5 additions and 2 deletions

View file

@ -1,3 +1,8 @@
Wed Jan 29 18:09:48 2014 Eric Wong <e@80x24.org>
* io.c (nogvl_copy_stream_sendfile): remove socket check
[ruby-core:59856][Feature #9427]
Wed Jan 29 04:29:54 2014 Aaron Patterson <aaron@tenderlovemaking.com>
* ext/openssl/ossl_ssl.c: pass read_nonblock options to underlying IO

2
io.c
View file

@ -10062,8 +10062,6 @@ nogvl_copy_stream_sendfile(struct copy_stream_struct *stp)
stp->error_no = errno;
return -1;
}
if ((dst_stat.st_mode & S_IFMT) != S_IFSOCK)
return 0;
src_offset = stp->src_offset;
use_pread = src_offset != (off_t)-1;