def copy(self):
c = copy.deepcopy(self)<EOL>c.host = copy.copy(self.host)<EOL>c.port = copy.copy(self.port)<EOL>c.timeout = copy.copy(self.timeout)<EOL>c._sock = None<EOL>return c<EOL>
Create an inactive copy of the connection object, suitable for
passing to a background thread.

The returned copy is not connected; you must call reinit() before
using.