Changeset 1209

Show
Ignore:
Timestamp:
04/07/07 15:41:44 (2 years ago)
Author:
common
Message:

nepenthes

  • submit-mwserv's TransferSession? if the connection is bad, use the checkTimeout() method to get rid of it
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • nepenthes/trunk/modules/submit-mwserv/TransferSession.cpp

    r1200 r1209  
    377377 
    378378} 
     379 
     380 
     381bool TransferSession::checkTimeout() 
     382{ 
     383        // if the connection is bad, give curl a chance to take care, so we can get rid of the connection 
     384        if (getSocket() == -1) 
     385                doRecv(); 
     386                 
     387        return false; 
     388} 
  • nepenthes/trunk/modules/submit-mwserv/TransferSession.hpp

    r1173 r1209  
    9999        int32_t getsockOpt(int32_t level, int32_t optname, 
    100100                void *optval, socklen_t *optlen); 
     101        bool checkTimeout(); 
    101102 
    102103protected: