[前][次][番号順一覧][スレッド一覧]

ruby-changes:32668

From: normal <ko1@a...>
Date: Wed, 29 Jan 2014 18:13:13 +0900 (JST)
Subject: [ruby-changes:32668] normal:r44747 (trunk): io.c: remove socket check

normal	2014-01-29 18:13:08 +0900 (Wed, 29 Jan 2014)

  New Revision: 44747

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=44747

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

  Modified files:
    trunk/ChangeLog
    trunk/io.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 44746)
+++ ChangeLog	(revision 44747)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Jan 29 18:09:48 2014  Eric Wong <e@8...>
+
+	* io.c (nogvl_copy_stream_sendfile): remove socket check
+	  [ruby-core:59856][Feature #9427]
+
 Wed Jan 29 04:29:54 2014  Aaron Patterson <aaron@t...>
 
 	* ext/openssl/ossl_ssl.c: pass read_nonblock options to underlying IO
Index: io.c
===================================================================
--- io.c	(revision 44746)
+++ io.c	(revision 44747)
@@ -10062,8 +10062,6 @@ nogvl_copy_stream_sendfile(struct copy_s https://github.com/ruby/ruby/blob/trunk/io.c#L10062
         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;

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]