[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/work/icecream-make-it-cool/services
From:       Dirk Mueller <mueller () kde ! org>
Date:       2007-07-30 22:08:57
Message-ID: 1185833337.538626.2267.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 694506 by mueller:

- reenable cork handling on linux only. helps a lot


 M  +4 -3      comm.cpp  


--- branches/work/icecream-make-it-cool/services/comm.cpp #694505:694506
@@ -440,6 +440,7 @@
        || (uncompressed_len && !compressed_len)
        || inofs < intogo + compressed_len )
     {
+      log_error() << "failure in readcompressed() length checking" << endl;
       *uncompressed_buf = 0;
       uncompressed_len = 0;
       _uclen = uncompressed_len;
@@ -831,9 +832,9 @@
 
   int i = 0;
   setsockopt (fd, IPPROTO_TCP, TCP_NODELAY, (char*) &i, sizeof(i));
-  // would be nice but not portable accross non-linux and
-  // causes huge delays in case of partial frames (seconds range)
-#if 0
+
+  // would be nice but not portable accross non-linux
+#ifdef __linux__
   i = 1;
   setsockopt (fd, IPPROTO_TCP, TCP_CORK, (char*) &i, sizeof(i));
 #endif
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic