jupyter / terminado

Terminals served by tornado websockets
http://terminado.readthedocs.org/en/latest/
BSD 2-Clause "Simplified" License
368 stars 95 forks source link

Fix blocking of pty_read when there isn't pty data ready to read #107

Closed icankeep closed 3 years ago

icankeep commented 3 years ago

related issue: #106

It seems that sometimes if there is no data ready, it will also trigger the execution of this function, and blocking the entire main thread. This phenomenon is very similar to a deadlock, so another judgment is added to ptyread to avoid this situation.