codegooglecom / libproxy

Automatically exported from code.google.com/p/libproxy
GNU Lesser General Public License v2.1
0 stars 0 forks source link

Assertion failed in char* url::get_pac() #208

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
- Install a pac file, accesible with the URL "http://wpad/wpad.dat"
- Launch a detection with libproxy

What is the expected output? What do you see instead?
- Fonction char* url::get_pac() is called and should return the PAC content
- Instead, it returns a "Debug Assertion Failed : Expression : (fh >= 0 && 
(unsigned)fh < (unsigned)_nhandle)". It happens on the close() at the end of 
the function (line 500)/

What version of the product are you using? On what operating system?
- Revision 880. Seems the bug was added on rev870
- Windows 7 Pro x64, Visual Studio 2008

Please provide any additional information below.
- It seems we can't shutdown and close the same socket handle.

Original issue reported on code.google.com by mugimas...@gmail.com on 18 Apr 2014 at 8:49

GoogleCodeExporter commented 9 years ago
Hum, in fact, even if I remove the "shutdown" and let the "close", the 
assertion still occurs. It seems that we should use closesocket instead like in 
the Issue 207.

Original comment by mugimas...@gmail.com on 18 Apr 2014 at 9:59