yaq-project / yaq-python

Repository for yaq core python packages.
https://yaq.fyi
GNU Lesser General Public License v3.0
6 stars 5 forks source link

yaqc should timeout if data is malformed #30

Closed untzag closed 1 year ago

untzag commented 1 year ago

I have not actually seen this, but from my understanding it's possible for Socket._read to stall forever within self._socket.recv if returned data is somehow malformed. We should make this more graceful and timeout raising an exception, in my opinion.

ksunden commented 1 year ago

simply setting timeout to a number instead of None should likely do this, I think