Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

network failure when using SSL blows up application #90

Open
paulrobello opened this issue Nov 18, 2018 · 0 comments
Open

network failure when using SSL blows up application #90

paulrobello opened this issue Nov 18, 2018 · 0 comments

Comments

@paulrobello
Copy link

export const connectOptions = { host: process.env.MQ_SERVER || 'localhost', port: parseInt(process.env.MQ_PORT || '61612', 10), timeout: 5000, ssl: true, rejectUnauthorized: false, checkServerIdentity: () => { }, connectHeaders: { 'heart-beat': '5000,5000' } };
Connections comes up and works as expected, however when a network error occurs it blows up the application with an unhandled error event
`
events.js:167
throw er; // Unhandled 'error' event
^

Error: read ECONNRESET
at TLSWrap.onStreamRead (internal/stream_base_commons.js:111:27)
Emitted 'error' event at:
at Client.Socket.destroy (.\node_modules\stompit\lib\Socket.js:136:12)
at TLSSocket. (.\node_modules\stompit\lib\Socket.js:48:10)
at TLSSocket.emit (events.js:187:15)
at emitErrorNT (internal/streams/destroy.js:82:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:50:3)
at process.internalTickCallback (internal/process/next_tick.js:72:19)

`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant