Do you get different results using readavailable()? Maybe there isn't a
newline on the stream and readline() blocks waiting for it.

On Tue, Dec 8, 2015 at 2:51 PM, Colin Beckingham <[email protected]>
wrote:

> I'm trying to launch a process from a Julia script. The process is a
> socket server.
> If I start the socket server outside Julia, then use Julia to connect to
> the socket, I can read from and write to the connected stream.
>
> Now if I use open() inside Julia to launch the socket server, wait a few
> seconds for it to set up and listen
> then connect() is good, the process starts, I give it some input and it
> acts on that input correctly, then my task
> is to collect text output from the socket server. But the readline()
> request waits and waits, hearing nothing.
>
> I guess I am confused by all the handles: stream and process are returned
> from open(), but I have the connect() handle as well.
> Perhaps something is blocking the output on open()?
>

Reply via email to