kiss9815 / mongoose

Automatically exported from code.google.com/p/mongoose
MIT License
0 stars 0 forks source link

Digest authorization doesn't work properly with keep-alive #252

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. start mongoose with keep-alive, and a global passwords file
2. Open Firefox or MSIE and connect with mongoose

What is the expected output? What do you see instead?
Opera (11.01) and Google Chrome (11.0.696.60) correctly display a pop-up box 
asking for username/password. Firefox (4.0) and IE (7.0) seem to wait forever.

What version of the product are you using? On what operating system?
Windows XP Sp3, Opera 11.01, Google Chrome 11.0, Firefox 4.0, IE 7.

Please provide any additional information below.
The problem is resolved by adding a Connection: keep-alive header to 
send_authorization_request() when keep-alive is used.

Original issue reported on code.google.com by kwokkie....@gmail.com on 9 May 2011 at 11:24

GoogleCodeExporter commented 9 years ago

What version of the product are you using? On what operating system?
mongoose 3.0, running on Debian Linux.

Original comment by kwokkie....@gmail.com on 9 May 2011 at 11:45

GoogleCodeExporter commented 9 years ago
I accidentally left keep-alive off when I was trying things out. My suggestion 
earlier to add the Connection header doesn't solve the problem. Adding 
Content-Length: 0 seems to do the trick (or adding a body with the appropriate 
content-length).

Original comment by kwokkie....@gmail.com on 10 May 2011 at 1:25

GoogleCodeExporter commented 9 years ago
Submitted 
https://code.google.com/p/mongoose/source/detail?r=a5effb8800f3847766070fdc7da31
bc7fd1df63d - please verify

Original comment by valenok on 18 Jun 2011 at 9:22

GoogleCodeExporter commented 9 years ago
the fix works for me. Thanks!

Original comment by kwokkie....@gmail.com on 30 Jun 2011 at 1:18