kennsippell opened a new issue #1711: cookie_authentication_handler failing to achieve successful cookie auth due to aggressive default timeout URL: https://github.com/apache/couchdb/issues/1711 I have a fairly empty clean install of CouchDB with `httpd/authentication_handlers` set to `{couch_httpd_auth, cookie_authentication_handler}, {couch_httpd_auth, default_authentication_handler} ## Expected Behavior I'm attempting to authenticate using only a cookie header. Something like: ``` curl http://upstream:5984/db -H "Cookie: AuthSession=d29ya2VyOjVCREMzNkRGOoASAazydw8meb2W5VoGcXDPD_UH;" -H "Content-Type: application/json" ``` ## Current Behavior It isn't working. The debug output for this lookup is: ``` [notice] 2018-11-02T13:01:56.383470Z [email protected] <0.29344.42> 41bae4dc6e upstream:5984 127.0.0.1 undefined GET /db 400 ok 0 [debug] 2018-11-02T13:02:02.431594Z [email protected] <0.29314.42> 699405e1e2 cache hit for worker [debug] 2018-11-02T13:02:02.431645Z [email protected] <0.29314.42> 699405e1e2 timeout 600 ``` ## Possible Solution Just to see if the timeout was blocking the lookup, I increased it to 3000 (didn't work) and 30000 (does work!) Even with this massive timeout, the lookup seemed almost instantaneous (like couple ms not 300 seconds). ## Your Environment * Version used: 2.2 * Operating System and version (desktop or mobile): Ubuntu 18.04
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
