cometd / cometd-nodejs-client

CometD client for NodeJS
Apache License 2.0
17 stars 7 forks source link

Socket Hang Up Issue [Long Polling] #12

Closed rbaid1221 closed 4 years ago

rbaid1221 commented 6 years ago

When making the cometd initial handshake and connection, everything works perfectly. After about 2 connection requests, however, it gives a socket hang up issue.

Any ideas?

{ id: '5', successful: false, channel: '/meta/connect', failure: { reason: 'socket hang up', exception: undefined, httpCode: 0, connectionType: 'long-polling', transport: { status: 0, statusText: 'socket hang up', readyState: 4, responseText: '', open: [Function], setRequestHeader: [Function], send: [Function], abort: [Function], _config: [Function], context: undefined, withCredentials: true, onload: [Function], onerror: [Function] }, message: { id: '5', channel: '/meta/connect', connectionType: 'long-polling', clientId: '----deleted' } } }

sbordet commented 6 years ago

Too little information to understand what's going on.

Please enable DEBUG logging in CometD and attach the logs to this issue.

What server are you using? What is the CometD timeout, and what is the server idle timeout?

sbordet commented 4 years ago

No further activity, closing.