@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.
Files changed (4) hide show
  1. package/app.js +1 -1
  2. package/couch.js +3 -2
  3. package/http.js +1 -1
  4. 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 = 70
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: 8,
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 (!nextPromise) {
258
+ if (nextPromise) {
259
259
  await Promise.all([nextPromise, responsePromise])
260
260
  } else if (!res.closed) {
261
261
  await responsePromise
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/lib",
3
- "version": "21.3.6",
3
+ "version": "21.3.8",
4
4
  "license": "MIT",
5
5
  "author": "Robert Nagy <robert.nagy@boffins.se>",
6
6
  "type": "module",