ndw / xmlcalabash1

XML Calabash, an XProc processor
http://xmlcalabash.com/
108 stars 41 forks source link

Handle process I/O correctly #318

Closed ndw closed 3 years ago

ndw commented 3 years ago

There's a bug in the way that p:exec uses the Process object. I'm just assuming that I can write all of the output (the input to the process) before I read the input (the output from the process). But if the output is large enough, and the process begins writing its output before I finish writing its input, then we can get into a deadlock situation where the process can't continue because it's waiting for someone to read its output and I never get there because I'm stuck waiting to write its input.

ndw commented 3 years ago

This is fixed in 1.3.0