Killable socket in python
My goal is to emit an interface to listen on a socket forever … until someone up the decision chain decides it’s enough.
Killable socket in python
My goal is to emit an interface to listen on a socket forever … until someone up the decision chain decides it’s enough.
Python threads access the same socket, one sending and one receiving, fails to detect receive data
The threads are Thread-based classes. Access to the socket is controlled via a Lock.
Sending works but reception does not. There is definitely data being sent over the socket in both directions since Wireshark shows it. Strangely, if I run the code in the Visual Code IDE and I apply a breakpoint anywhere where it will not be hit, this tickles the socket into giving up its data.
Any thoughts please?
Handling Synchronous Socket Reads and Asynchronous Events in Python
As an educational project, I’m working on a Python application that involves multiple threads, each blocked on a synchronous socket read operation. I need these threads to also respond to two types of events: individual thread-specific events and broadcast events that all threads should respond to. The challenge is to handle these events without interrupting the blocking read on the socket.