summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--io.c2
2 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 08aa770b5f..3a6b031a86 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Wed Jan 29 18:09:48 2014 Eric Wong <[email protected]>
+
+ * io.c (nogvl_copy_stream_sendfile): remove socket check
+ [ruby-core:59856][Feature #9427]
+
Wed Jan 29 04:29:54 2014 Aaron Patterson <[email protected]>
* ext/openssl/ossl_ssl.c: pass read_nonblock options to underlying IO
diff --git a/io.c b/io.c
index 6bab4f9378..00f9abc2c5 100644
--- a/io.c
+++ b/io.c
@@ -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;