Changeset 579

Show
Ignore:
Timestamp:
11/15/07 18:13:45 (1 year ago)
Author:
blackhedd
Message:

Fixed bug, we were failing to send zero-length datagrams under certain conditions.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • version_0/ChangeLog

    r578 r579  
    878712Nov07: Added saslauth.rb, a protocol module to replace the Cyrus SASL 
    8888daemons saslauthd and pwcheck. 
     8915Nov07: Fixed bug reported by Mark Zvillius. We were failing to dispatch 
     90        zero-length datagrams under certain conditions. 
  • version_0/ext/ed.cpp

    r574 r579  
    11481148bool DatagramDescriptor::SelectForWrite() 
    11491149{ 
    1150         return (GetOutboundDataSize() > 0); 
     1150        /* Changed 15Nov07, per bug report by Mark Zvillius. 
     1151         * The outbound data size will be zero if there are zero-length outbound packets, 
     1152         * so we now select writable in case the outbound page buffer is not empty. 
     1153         * Note that the superclass ShouldDelete method still checks for outbound data size, 
     1154         * which may be wrong. 
     1155         */ 
     1156        //return (GetOutboundDataSize() > 0); (Original) 
     1157        return (OutboundPages.size() > 0); 
    11511158} 
    11521159