apache / couchdb-nano

Nano: The official Apache CouchDB library for Node.js
https://www.npmjs.com/package/nano
Apache License 2.0
653 stars 165 forks source link

http and https #336

Open alfille opened 1 year ago

alfille commented 1 year ago

I have a use case where the couchdb server may be SSL protected (https port 6984). For generality, I'd like to probe both choices and use the successful one.

I tried opening 2 instances of nano, one for http and one for https but it seems that the first invocation sets some internal flags so the second one points to the first. Perhaps cookies?

This is on current version of couchdb and nano. (a fresh install).

In general, either 2 separate couchdb connections should be possible (and documented), or there should be a way to close and reopen with fresh address.