drain the read fd when refusing authenticationmob
commit2d97005ae9acb8c2132682418bfed40aaa43912f
authorOliver Gerlich <oliver.gerlich@gmx.de>
Sat, 1 Mar 2008 11:44:43 +0000 (1 12:44 +0100)
committerOliver Gerlich <oliver.gerlich@gmx.de>
Sat, 1 Mar 2008 11:44:43 +0000 (1 12:44 +0100)
tree55c116aedb8cfe0688be10bb444b1b7d0a3e68e2
parent7ee5d37a0b8c6be1dc85b63d25f1c2f1c6d47fd6
drain the read fd when refusing authentication

Apparently if there is still data waiting on the socket and we refuse authentication,
that data will be treated as a new request. This is probably dependent on
the keep-alive config, but as a workaround we now just read all data before
responding with 401.
davserver.py