Changeset 3439 for trunk/src/wsock32/asyncapi.cpp
- Timestamp:
- Apr 23, 2000, 5:55:52 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wsock32/asyncapi.cpp
r3265 r3439 1 /* $Id: asyncapi.cpp,v 1. 5 2000-03-28 19:10:09sandervl Exp $ */1 /* $Id: asyncapi.cpp,v 1.6 2000-04-23 15:55:52 sandervl Exp $ */ 2 2 3 3 /* … … 473 473 case SOCECONNRESET: 474 474 case SOCEPIPE: 475 if(lEventsPending & FD_CLOSE) 475 if(lEventsPending & FD_CLOSE) { 476 dprintf(("FD_CLOSE; broken connection")); 476 477 AsyncNotifyEvent(pThreadParm, FD_CLOSE, WSAECONNRESET); 478 } 477 479 478 480 //remote connection broken (so can't receive data anymore) … … 482 484 483 485 case SOCEINVAL: 484 if(lEventsPending & FD_CLOSE) 486 if(lEventsPending & FD_CLOSE) { 487 dprintf(("FD_CLOSE; SOCEINVAL")); 485 488 AsyncNotifyEvent(pThreadParm, FD_CLOSE, selecterr); 489 } 486 490 break; 487 491 default: … … 524 528 if(lEventsPending & FD_CLOSE) 525 529 { 530 dprintf(("FD_CLOSE; ioctl; socket error")); 526 531 AsyncNotifyEvent(pThreadParm, FD_CLOSE, NO_ERROR); 527 532 //remote connection broken (so can't receive data anymore) … … 552 557 AsyncNotifyEvent(pThreadParm, FD_READ, NO_ERROR); 553 558 } 559 #if 0 560 //SvL: This generates FD_CLOSE messages when the connection is just fine 561 // (recv executed in another thread when select returns) 554 562 else 555 563 if((lEventsPending & FD_CLOSE) && (state == 0 && bytesread == 0)) { 564 dprintf(("FD_CLOSE; state == 0 && bytesread == 0")); 556 565 AsyncNotifyEvent(pThreadParm, FD_CLOSE, NO_ERROR); 557 566 } 567 #endif 558 568 } 559 569 if(ready(noexcept))
Note:
See TracChangeset
for help on using the changeset viewer.