sockets - Python TCPServer, error 98, Address already in use -


i faced error 98, address in use problem while kill running python tcpserver server , try re-start it.

i noticed there other article, suggest sock.setsockopt(socket.sol_socket, socket.so_reuseaddr, 1) or set tcpserver.allow_reuse_address = true.

but still faced same problem, there other reason this?

i using redhat el 6.2, python 2.6.

thanks

the code used was:

tcpserver.allow_reuse_address = true tcpserver.__init__(self, (gethostname(), self.server_port),scheddrequesthandler)  

this keeps on getting me error 98.

however if changed to:

tcpserver.allow_reuse_address = true tcpserver((gethostname(),self.server_port),scheddrequesthandler) 

the error gone.

i not quite clear why happened?


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -