B
bahat
Hi,
I'm trying to implement a simple client/server application based on
the example given in perlipc.
I added a server command that starts a command session (system("cmd")).
In the client I called this command and immediately called the 'exit'
command, which should close the connection.
What I'm seeing is that although the server closed the socket, the
client appears to wait until the started command session closes before
existing.
When I changed the 'close $client' to 'shutdown($client,2) it worked
but I want to understand what I'm seeing.
Kind Regards,
Lior
I'm trying to implement a simple client/server application based on
the example given in perlipc.
I added a server command that starts a command session (system("cmd")).
In the client I called this command and immediately called the 'exit'
command, which should close the connection.
What I'm seeing is that although the server closed the socket, the
client appears to wait until the started command session closes before
existing.
When I changed the 'close $client' to 'shutdown($client,2) it worked
but I want to understand what I'm seeing.
Kind Regards,
Lior