Ignore:
Timestamp:
30/09/2008 22:07:36 (4 years ago)
Author:
chris
Message:

Additional debugging for protocol stream deadlock reported by
Matt Brown.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/lib/server/Protocol.cpp

    r1471 r2303  
    750750                         
    751751                        // Send final byte to finish the stream 
     752                        BOX_TRACE("Sending end of stream byte"); 
    752753                        uint8_t endOfStream = ProtocolStreamHeader_EndOfStream; 
    753754                        mrStream.Write(&endOfStream, 1); 
     755                        BOX_TRACE("Sent end of stream byte"); 
    754756                } 
    755757                catch(...) 
     
    789791        if(BytesInBlock == 0) 
    790792        { 
     793                BOX_TRACE("Zero size block, not sending anything"); 
    791794                return 0; 
    792795        } 
     
    814817        } 
    815818        ASSERT(header > 0); 
     819        BOX_TRACE("Sending header byte " << header << " plus " << writeSize << 
     820                " bytes to stream"); 
    816821         
    817822        // Store the header 
     
    821826        mrStream.Write(Block - 1, writeSize + 1); 
    822827         
     828        BOX_TRACE("Sent " << (writeSize+1) << " bytes to stream"); 
    823829        // move the remainer to the beginning of the block for the next time round 
    824830        if(writeSize != BytesInBlock) 
Note: See TracChangeset for help on using the changeset viewer.