must be called only from asio thread
| 702 | |
| 703 | //must be called only from asio thread |
| 704 | void ProcessReqsInFlyQueue() { |
| 705 | if (AtomicGet(State_) == Closed) { |
| 706 | return; |
| 707 | } |
| 708 | |
| 709 | TRequest* reqPtr; |
| 710 | |
| 711 | while (ReqsInFlyQueue_.Dequeue(&reqPtr)) { |
| 712 | TRequestRef reqTmp(reqPtr); |
| 713 | reqPtr->UnRef(); |
| 714 | ReqsInFly_[reqPtr->ReqId()].Swap(reqTmp); |
| 715 | } |
| 716 | } |
| 717 | |
| 718 | //must be called only from asio thread |
| 719 | void OnConnect(const TErrorCode& ec, IHandlingContext&) { |