in reply to threadpools and tcp connections
You can't pass objects between threads, so putting the TCP connection into the Thread::Queue will not work. But as the TCP connection is not reall y needed in the worker thread, you can store the TCP connection in a shared hash or keep it completely in the client and just send some ID with the request. When you get the ID back, you know which socket connection the answer belongs to.
|
|---|