owaisawan / xuggle

Automatically exported from code.google.com/p/xuggle
0 stars 0 forks source link

Would like to interrupt blocking IO methods in Xuggler #125

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Currently if you open a TCP, UDP, HTTP or RTSP socket in Xuggler, that
method blocks until data is returned.  There is no way to interrupt from Java.

Several folks have asked for this not to be the case, and it'd sure be
nice.  Not sure if it's doable, but adding it to the list.

Original issue reported on code.google.com by art.cla...@gmail.com on 23 May 2009 at 2:18

GoogleCodeExporter commented 9 years ago
Added in r543.

Now if the current thread is interrupted, we'll periodically check the status 
and try
to return promptly if it is.  We won't clear the interrupt status -- that's up 
to the
Xuggler caller -- nor will we throw InterruptedException (since we didn't 
declare we
could).

This gives folks a way to unblock long-running IO calls. 

Original comment by art.cla...@gmail.com on 23 May 2009 at 3:31

GoogleCodeExporter commented 9 years ago
I meant completed

Original comment by art.cla...@gmail.com on 23 May 2009 at 3:33