bayeux
bayeux copied to clipboard
Unknown error not get thrown for connect() call
If there's some unknown error occurred during http request, in the connect() it will retry again and again. The error is not thrown.
2018-Jul-06 08:26:42:492 [N/A] 2018/07/06 13:26:42.492584 bayeux.go:215: Cannot connect to bayeux Unknown error: Post https://ap1.salesforce.com/cometd/38.0: EOF 2 2018-Jul-06 08:26:42:492 [N/A] 2018/07/06 13:26:42.492503 bayeux.go:118: Bad unrecoverable Call: Post https://ap1.salesforce.com/cometd/38.0: EOF 3 2018-Jul-06 08:26:42:492 [N/A] 2018/07/06 13:26:42.492648 bayeux.go:216: Trying again...
The error should be thrown so that the client side can catch it and do re-handshake/re-subscribe.