I am working with thrift-python now. And After I checked source code of that, I found that on server end, thrift setsockopt(reuseaddr, 1) by default. It's helpful for Ctrl + C and restart server to debug.
But now I have too many clients at localhost, they use short connections to communicate with server. And when they close connecitons, those random ports are exactly in TIME_WAIT status! so they could cover ports which I want to run another thrift server on it. So, How could I specify REUSEADDR option on thrift client end?
I have figure out some detail about thrift,