@nxtedition/lib 21.3.6 → 21.3.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app.js +1 -1
- package/couch.js +3 -2
- package/http.js +1 -1
- package/package.json +1 -1
package/app.js
CHANGED
|
@@ -250,7 +250,7 @@ export function makeApp(appConfig, onTerminate) {
|
|
|
250
250
|
if (appConfig.toobusy) {
|
|
251
251
|
const resolution = 10
|
|
252
252
|
const interval = 500
|
|
253
|
-
const maxLag =
|
|
253
|
+
const maxLag = 100
|
|
254
254
|
const id = xuid()
|
|
255
255
|
|
|
256
256
|
const currentLag$ = new rxjs.BehaviorSubject(0)
|
package/couch.js
CHANGED
|
@@ -288,6 +288,8 @@ export function makeCouch(opts) {
|
|
|
288
288
|
})
|
|
289
289
|
}
|
|
290
290
|
|
|
291
|
+
retryCount = 0
|
|
292
|
+
|
|
291
293
|
src = ures.body
|
|
292
294
|
|
|
293
295
|
const changes = []
|
|
@@ -384,7 +386,6 @@ export function makeCouch(opts) {
|
|
|
384
386
|
const ret = []
|
|
385
387
|
ret.lastSeq = params.since
|
|
386
388
|
yield ret
|
|
387
|
-
|
|
388
389
|
return
|
|
389
390
|
}
|
|
390
391
|
}
|
|
@@ -1058,7 +1059,7 @@ class PromiseOutput {
|
|
|
1058
1059
|
|
|
1059
1060
|
const defaultDispatcher = new Agent({
|
|
1060
1061
|
pipelining: 4,
|
|
1061
|
-
connections:
|
|
1062
|
+
connections: 32,
|
|
1062
1063
|
})
|
|
1063
1064
|
|
|
1064
1065
|
export function request(url, opts) {
|
package/http.js
CHANGED
|
@@ -255,7 +255,7 @@ export async function request(ctx, next) {
|
|
|
255
255
|
res.on('timeout', onTimeout).on('error', reject).on('close', resolve)
|
|
256
256
|
})
|
|
257
257
|
|
|
258
|
-
if (
|
|
258
|
+
if (nextPromise) {
|
|
259
259
|
await Promise.all([nextPromise, responsePromise])
|
|
260
260
|
} else if (!res.closed) {
|
|
261
261
|
await responsePromise
|