Hi, I found out a Runtime Error of Bad SOF is raised in the recv function but it is not caught in its caller run. Instead of raising the error, I changed the code to write to stdout and clear data instead. With this change, I was able to retrieve data again.
The other way to do it would be putting while self.is_connected and not self.shutdown: in the function run. We can then catch the error there and continue.
Hi, I found out a Runtime Error of Bad SOF is raised in the
recv
function but it is not caught in its callerrun
. Instead of raising the error, I changed the code to write to stdout and clear data instead. With this change, I was able to retrieve data again.The other way to do it would be putting
while self.is_connected and not self.shutdown:
in the functionrun
. We can then catch the error there and continue.