glynnbird opened a new pull request, #325:
URL: https://github.com/apache/couchdb-nano/pull/325

   ## Overview
   
   Fixes a bug in cookie parsing. See Issue #324. 
   
   ## Testing recommendations
   
   As well as the automated testing,  a long-running script to see if a session 
outlasts the first cookie:
   
   ```
   const Nano = require('.')
   const nano = Nano(process.env.COUCH_URL)
   
   const sleep = async (ms) => {
     return new Promise((resolve, reject) => {
       setTimeout(resolve, ms)
     })
   }
   const main = async () => {
     await nano.auth(process.env.COUCH_USER, process.env.COUCH_PASSWORD)
   
     do {
       const r = await nano.db.list()
       console.log(new Date().toISOString(), r.length)
       await sleep(30000)
     } while (1)
   }
   
   main()
   ```
   
   ## GitHub issue number
   
   Fixes Issue #324. 
   
   ## Related Pull Requests
   
   A provisional PR that replaces Axios already had code to bring cookie 
handling in-house, so this has been brought forward here. See 
https://github.com/apache/couchdb-nano/pull/314
   
   ## Checklist
   
   - [x] Code is written and works correctly;
   - [x] Changes are covered by tests;
   - [x] Documentation reflects the changes;
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to