apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject svn commit: r366063 - /apr/apr/trunk/network_io/os2/sendrecv.c
Date Thu, 05 Jan 2006 03:06:00 GMT
Author: bjh
Date: Wed Jan  4 19:05:54 2006
New Revision: 366063

URL: http://svn.apache.org/viewcvs?rev=366063&view=rev
Log:
The OS/2 send() function returns EINVAL if the data size is > 64k so limit the
send size to 64k. As any call to apr_socket_send() must handle partial sends
anyway, this will be treated just like any other partial send.

This was occurring when svnserve was sending a large file.

Modified:
    apr/apr/trunk/network_io/os2/sendrecv.c

Modified: apr/apr/trunk/network_io/os2/sendrecv.c
URL: http://svn.apache.org/viewcvs/apr/apr/trunk/network_io/os2/sendrecv.c?rev=366063&r1=366062&r2=366063&view=diff
==============================================================================
--- apr/apr/trunk/network_io/os2/sendrecv.c (original)
+++ apr/apr/trunk/network_io/os2/sendrecv.c Wed Jan  4 19:05:54 2006
@@ -27,6 +27,10 @@
     apr_ssize_t rv;
     int fds, err = 0;
 
+    if (*len > 65536) {
+        *len = 65536;
+    }
+
     do {
         if (!sock->nonblock || err == SOCEWOULDBLOCK) {
             fds = sock->socketdes;



Mime
View raw message