Handling Incoming Data from Multiple Sockets in Python
Posted
by
user859434
on Stack Overflow
See other posts from Stack Overflow
or by user859434
Published on 2012-07-02T03:11:16Z
Indexed on
2012/07/02
3:15 UTC
Read the original article
Hit count: 242
Background: I have a current implementation that receives data from about 120 different socket connections in python. In my current implementation, I handle each of these separate socket connections with a dedicated thread for each. Each of these threads parse the data and eventually store it within a shared locked dictionary. These sockets DO NOT have uniform data rates, some sockets get more data than others.
Question: Is this the best way to handle incoming data in python, or does python have a better way on handling multiple sockets per thread?
© Stack Overflow or respective owner