SimpleXMLRPCServer Releasing Ports

Ulli Stein mennosimons at gmx.net
Tue Oct 8 09:32:47 EDT 2002


John Abel wrote:

> Hi,
> 
> I have a script running, using SimpleXMLRPCServer, which works OK.
>  Except, when I stop, and restart the script, I receive the error,
> "Address already in use".  Is there something I can do, like a
> destructor, to tidy up, so that the script can be restarted?
> 
> Thanks
> 
> John

It is probably an os issue. Maybe you can tweak it using low level socket 
operations which state how long your IP/Port will be blocked.

Ulli



More information about the Python-list mailing list