зеркало из https://github.com/github/ruby.git
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:
Родитель
0cee7f8e2f
Коммит
c5f2c66270
|
@ -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>
|
Wed Jan 29 04:29:54 2014 Aaron Patterson <aaron@tenderlovemaking.com>
|
||||||
|
|
||||||
* ext/openssl/ossl_ssl.c: pass read_nonblock options to underlying IO
|
* ext/openssl/ossl_ssl.c: pass read_nonblock options to underlying IO
|
||||||
|
|
2
io.c
2
io.c
|
@ -10062,8 +10062,6 @@ nogvl_copy_stream_sendfile(struct copy_stream_struct *stp)
|
||||||
stp->error_no = errno;
|
stp->error_no = errno;
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
if ((dst_stat.st_mode & S_IFMT) != S_IFSOCK)
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
src_offset = stp->src_offset;
|
src_offset = stp->src_offset;
|
||||||
use_pread = src_offset != (off_t)-1;
|
use_pread = src_offset != (off_t)-1;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче