Skip to content Skip to sidebar Skip to footer

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:

  1. Append a \n to the string being sent.
  2. "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"