Changeset 454
- Timestamp:
- 07/20/07 12:42:06 (1 year ago)
- Files:
-
- version_0/ext/ed.cpp (modified) (2 diffs)
- version_0/ext/ed.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
version_0/ext/ed.cpp
r433 r454 176 176 bConnectPending (false), 177 177 bReadAttemptedAfterClose (false), 178 bWriteAttemptedAfterClose (false), 178 179 OutboundDataSize (0), 179 180 #ifdef WITH_SSL … … 538 539 * have used up its available output buffers between the select call 539 540 * and when we get here. So this condition is not an error. 541 * 542 * 20Jul07, added the same kind of protection against an invalid socket 543 * that is at the top of ::Read. Not entirely how this could happen in 544 * real life (connection-reset from the remote peer, perhaps?), but I'm 545 * doing it to address some reports of crashing under heavy loads. 540 546 */ 541 547 542 548 int sd = GetSocket(); 543 assert (sd != INVALID_SOCKET); 549 //assert (sd != INVALID_SOCKET); 550 if (sd == INVALID_SOCKET) { 551 assert (!bWriteAttemptedAfterClose); 552 bWriteAttemptedAfterClose = true; 553 return; 554 } 544 555 545 556 LastIo = gCurrentLoopTime; version_0/ext/ed.h
r433 r454 168 168 bool bConnectPending; 169 169 bool bReadAttemptedAfterClose; 170 bool bWriteAttemptedAfterClose; 170 171 171 172 deque<OutboundPage> OutboundPages;
