Hi,
I have a tool that listen on a tcp/ip port and when a message arrives, it is
printed to stdout. This tool is started using Runtime.exec using a wrapper
to catch the output of the tool. The wrapper is started and accessed from a
jython script.
Problem: The output from the tool (catched by the wrapper and displayed in
jython) does not come always available at the time it is expected. The
wrapper receives the output from the tool in a seperate thread and it looks
that this thread does receive some messages far too late, as if it is
blocked for some time.
Any idea ?
Regards
Stellah
I have a tool that listen on a tcp/ip port and when a message arrives, it is
printed to stdout. This tool is started using Runtime.exec using a wrapper
to catch the output of the tool. The wrapper is started and accessed from a
jython script.
Problem: The output from the tool (catched by the wrapper and displayed in
jython) does not come always available at the time it is expected. The
wrapper receives the output from the tool in a seperate thread and it looks
that this thread does receive some messages far too late, as if it is
blocked for some time.
Any idea ?
Regards
Stellah
Comment