Report error on request timeout

This commit is contained in:
Peter Iakovlev 2019-02-17 02:56:01 +04:00
parent dd02b83037
commit b7ade4bccd

View File

@ -607,7 +607,7 @@ struct ctr_state {
if (MTLogEnabled()) { if (MTLogEnabled()) {
MTLog(@"[MTTcpConnection#%x response timeout]", (int)self); MTLog(@"[MTTcpConnection#%x response timeout]", (int)self);
} }
[self stop]; [self closeAndNotifyWithError:true];
} }
- (void)socket:(GCDAsyncSocket *)__unused socket didReadPartialDataOfLength:(NSUInteger)partialLength tag:(long)__unused tag - (void)socket:(GCDAsyncSocket *)__unused socket didReadPartialDataOfLength:(NSUInteger)partialLength tag:(long)__unused tag