Closed eriksoe closed 13 years ago
Should the Thread.run() method simply return after calling finish(-1,_)?
Feel free to write a succested fix :-). Seems like you already have it sorted out.
Yes, except that the finish(-1,_) line wasn't called at all; EOF is not signalled with an exception. Fixed now.
In FDDriverInstance, in the run() function in the anonymous Thread class, EOF is handled by sending EOF signal to finish(), then allocating nother 1K buffer and repeating. This busy loop means that on EOF, we have both a 100% CPU condition and (unless the receiver keeps up) a rapidly-growing-memory footprint issue.