@live-change/dao 0.9.143 → 0.9.144

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.
@@ -181,11 +181,13 @@ class Connection extends EventEmitter {
181
181
  setTimeout(() => {
182
182
  if(queuedConnectionId === this.connectedCounter) {
183
183
  this.requestsQueue[queueId] = null
184
+ console.error("DISCONNECTED WHILE WAITING FOR REQUEST", msg)
184
185
  reject('disconnected')
185
186
  }
186
187
  }, settings.requestSendTimeout || 2300)
187
188
  }
188
189
  } else {
190
+ console.error("DISCONNECTED WHILE WAITING FOR REQUEST", msg)
189
191
  return reject('disconnected')
190
192
  }
191
193
  }
@@ -195,7 +197,8 @@ class Connection extends EventEmitter {
195
197
  this.activeTimeouts.delete(timeout)
196
198
  let waiting = this.waitingRequests.get(msg.requestId)
197
199
  if (waiting) {
198
- waiting.handler('timeout')
200
+ console.error("TIMEOUT WHILE WAITING FOR REQUEST", msg)
201
+ waiting.handler('timeout')
199
202
  this.waitingRequests.delete(msg.requestId)
200
203
  }
201
204
  for(let i = 0; i < this.requestsQueue.length; i++) {
@@ -204,6 +207,7 @@ class Connection extends EventEmitter {
204
207
  if(req.msg.requestId === msg.requestId) {
205
208
  const req = this.requestsQueue[i]
206
209
  this.requestsQueue[i] = null
210
+ console.error("TIMEOUT WHILE WAITING FOR REQUEST", msg)
207
211
  req.handler('timeout')
208
212
  }
209
213
  }
package/package.json CHANGED
@@ -35,6 +35,6 @@
35
35
  "scripts": {
36
36
  "test": "NODE_ENV=test tape tests/*"
37
37
  },
38
- "version": "0.9.143",
39
- "gitHead": "5d1d50252b6abcf7149a961ac0b4c521c1c53b56"
38
+ "version": "0.9.144",
39
+ "gitHead": "3e1c270531f304697049d8858eeeab77ca0c06a4"
40
40
  }