You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixed test server helper sometimes write after end.
It caused Uncaught Error: write after end as follows.
It had happened very subtle timing.
```
1) Websocket Client
auto reconnect
should resubscribe when reconnecting:
Uncaught Error: write after end
at writeAfterEnd (node_modules/duplexify/node_modules/readable-stream/lib/_stream_writable.js:288:12)
at Connection.Writable.write (node_modules/duplexify/node_modules/readable-stream/lib/_stream_writable.js:332:20)
at Connection.<computed> [as pingresp] (node_modules/mqtt-connection/connection.js:95:10)
at Connection.<anonymous> (test/server_helpers_for_client_tests.js:96:20)
at Connection.emitPacket (node_modules/mqtt-connection/connection.js:10:8)
at addChunk (node_modules/duplexify/node_modules/readable-stream/lib/_stream_readable.js:291:12)
at readableAddChunk (node_modules/duplexify/node_modules/readable-stream/lib/_stream_readable.js:278:11)
at Connection.Readable.push (node_modules/duplexify/node_modules/readable-stream/lib/_stream_readable.js:245:10)
at Connection.Duplexify._forward (node_modules/duplexify/index.js:170:26)
at DestroyableTransform.onreadable (node_modules/duplexify/index.js:134:10)
at emitReadable_ (node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:504:10)
at emitReadable (node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:498:62)
at addChunk (node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:298:29)
at readableAddChunk (node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:278:11)
at DestroyableTransform.Readable.push (node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:245:10)
at DestroyableTransform.Transform.push (node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:148:32)
at Parser.push (node_modules/mqtt-connection/lib/parseStream.js:19:12)
at Parser._newPacket (node_modules/mqtt-packet/parser.js:672:12)
at Parser.parse (node_modules/mqtt-packet/parser.js:43:45)
at DestroyableTransform.process [as _transform] (node_modules/mqtt-connection/lib/parseStream.js:14:17)
at DestroyableTransform.Transform._read (node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:184:10)
at DestroyableTransform.Transform._write (node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:172:83)
at doWrite (node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:428:64)
at writeOrBuffer (node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:417:5)
at DestroyableTransform.Writable.write (node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:334:11)
at Socket.ondata (internal/streams/readable.js:719:22)
at addChunk (internal/streams/readable.js:309:12)
at readableAddChunk (internal/streams/readable.js:284:9)
at Socket.Readable.push (internal/streams/readable.js:223:10)
at TCP.onStreamRead (internal/stream_base_commons.js:188:23)
at TCP.callbackTrampoline (internal/async_hooks.js:131:14)
```
0 commit comments