Closed mike820324 closed 7 years ago
@chhsiao90 finally, the pause and resume can be removed.
Great news and work! But is that a bug of tornado IOStream?
Force push to fix iostream regression.
As for whether or not it is a tornado bug. I'll fire a issue when I wake up. ;D
The root cause of "IOStream is not Idle" when calling start_tls is that current tornado iostream implementation will recv the data to buffer even when the iostream state is not reading. As a result, when some other code yield there is a posibility that the handle_read will be called.
Thie PR change the behavior of this part. When the iostream is not in reading state, we will not handle_read even when event is happened until the client called read_xxx related code.