apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject svn commit: r366065 - /apr/apr/branches/0.9.x/network_io/os2/sendrecv.c
Date Thu, 05 Jan 2006 03:13:39 GMT
Author: bjh
Date: Wed Jan  4 19:13:32 2006
New Revision: 366065

URL: http://svn.apache.org/viewcvs?rev=366065&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.

Backport from trunk of r366063.


Modified:
    apr/apr/branches/0.9.x/network_io/os2/sendrecv.c

Modified: apr/apr/branches/0.9.x/network_io/os2/sendrecv.c
URL: http://svn.apache.org/viewcvs/apr/apr/branches/0.9.x/network_io/os2/sendrecv.c?rev=366065&r1=366064&r2=366065&view=diff
==============================================================================
--- apr/apr/branches/0.9.x/network_io/os2/sendrecv.c (original)
+++ apr/apr/branches/0.9.x/network_io/os2/sendrecv.c Wed Jan  4 19:13:32 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