magician-david / aforge

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

mjpegstream not stoping #198

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Connect IP camera (I used axis 216PTZ)and start a mjpeg stream
2.Pulled IP camera network asxis to simulate comm. loss.
3.Attempt to shut down stream with either WaitToStop() or Stop()

What is the expected output? What do you see instead?
The mjpeg stream should close, and allow disposale of the object. The app will 
hang due to the mjpeg thread still running.

What version of the product are you using?
2.1.5

Please provide any additional information below.
You can use Stop() if you have:
1.) Video stream running (connected).Video stream can connect/reconnect 
multiple times, as long as you are connected and getting video when you call 
stop. 
2.) No video stream was ever established.
If at any time you had a stream running, and then call stop() while IP camera 
can't be reached, the thread will not exit.

I have yet to try SignalToStop.

Original issue reported on code.google.com by welbyh...@gmail.com on 11 Apr 2011 at 4:39

GoogleCodeExporter commented 8 years ago
SignalToStop() shows the same behavior.

Original comment by welbyh...@gmail.com on 12 Apr 2011 at 6:41

GoogleCodeExporter commented 8 years ago

Original comment by andrew.k...@gmail.com on 19 Apr 2011 at 8:55

GoogleCodeExporter commented 8 years ago

Original comment by andrew.k...@gmail.com on 5 May 2011 at 12:29

GoogleCodeExporter commented 8 years ago
Improving a bit reaction on thread aborting for JPEGStream and MJPEGStream 
classes, so they return faster when ThreadAbortException exception is received. 
The rest of the issue was fixed before when improving HTTP time outs handling. 
Now Stop() will not return immediately also, but still will return much faster 
than it was in 2.1.5, where it was kind of blocking caller thread if camera got 
unplugged.

Committed in revision 1459. Will be released in version 2.2.0.

Original comment by andrew.k...@gmail.com on 7 May 2011 at 8:27

GoogleCodeExporter commented 8 years ago

Original comment by andrew.k...@gmail.com on 28 Jul 2011 at 9:46

GoogleCodeExporter commented 8 years ago

Original comment by andrew.k...@gmail.com on 10 Aug 2011 at 9:32