Python Xinetd Client Not Receiving Data
I'm trying to use xinetd to remotely run a command (traccejob). When I connect through telnet, everything works fine. Unfortuantely, the client that I've written doesn't seem to
Solution 1:
You have a deadlock situation: The client sends an incomplete line and waits for the server to send something, the server waits for line completion or EOF before it sends a reply.
So you have now 2 ways to proceed now:
- Append a
\n
to the string being sent. - "Half-close" the socket on client side with
sock.shutdown(socket.SHUT_WR)
after writing, but before reading.
Post a Comment for "Python Xinetd Client Not Receiving Data"