Infinite loop when server is lost during initial connection
When connecting to a http stream, if the server crashes or close without properly ending the connection, vlc will enter into an infinite loop, using about 20-25% of the cpu. This infinite loop stops when you press the stop button on the vlc interface. This loop only happens on windows.
Step to reproduce :
- Get this test project : https://github.com/MrRageFr/VLCCrashTest
- Compile and start the server
- Start vlc and connect to this address : http://localhost:1337/
- Upon initial connection, the server should crash (SEGFAULT), vlc will enter the infinite loop until the user stops trying to connect to the server.