djmitche/pynsca — pull request #3 by larsla (2012-08-13 10:18:03+00:00)
Title: Reuse ports if possible

Due to the single request/connection nature of NSCA we get sockets hanging around in TIME_WAIT for a long time. This is a problem under heavy load when we reach >20000 sockets in this state.
I patched pynsca to try to reuse client ports if possible and added the socket option SO_REUSE.
I have tested this and it seems to work well.