You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to create a threaded app that can stop each thread upon CTRL-C, and would like to set a timeout on consumer select.select to check if the app should quit or not. When I set blocking=False in consumer setup, I get nothing but resource not available errors.
Source:
I edited the source to not include my callsign and password
The error logged is when attempting to read from socket that has not received anything yet. That a result of setting blocking=False. The call returns immediately, or processes any packets that are available. Since you just connected, you have not yet received any packets. You will have to repeatedly make the consumer call to receive packets, and implement your own loop and wait logic.
14580 port is for user defined filter. I don't see one defined. I think it's packets addressed to login callsign or something. I use AIS.set_filter('t/poimqstunw') to receive all packet types.
I am trying to create a threaded app that can stop each thread upon CTRL-C, and would like to set a timeout on consumer select.select to check if the app should quit or not. When I set blocking=False in consumer setup, I get nothing but resource not available errors.
Source:
I edited the source to not include my callsign and password
The output
The text was updated successfully, but these errors were encountered: