Sun Jul 23 19:21:22 EDT 2017

Port close + wait for reply?

Is it possible to:
- send date
- close port
- wait for more data until process ends?

I'm trying to send stdin to a program, but it will only process when
stdin is closed, but then the port is gone..

In this case (sending to curl), it is possible to send the payload as an argument.