We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In lib/peer_socket we're setting a spdy agent but not handling the error event on it. See: https://github.com/zettajs/zetta/blob/master/lib/peer_socket.js#L121-L133
lib/peer_socket
I saw this repeatably throw when continually connecting and disconnecting a peer.
Example to make the cloud throw a ECONNRESET or other error.
ECONNRESET
var zetta = require('zetta'); var z = zetta() .link('http://localhost:5000') .listen(5002, function() { setInterval(function(){ z._peerClients.forEach(function(p) { p._ws.close(); }) }, 1000) });
We can handle the error like: PR coming soon.
this.agent.on('error', function(err) { self.close(); self.emit('error', err); })
The text was updated successfully, but these errors were encountered:
Cloud looks like:
var zetta = require('zetta'); zetta() .listen(5000);
Sorry, something went wrong.
Reproduced.
-- Matthew Dobson | apigee https://apigee.com/ | m: +1.734.634.5472 | twitter @mdobs http://twitter.com/mdobs @apigee https://twitter.com/apigee
On Fri, Jan 30, 2015 at 2:46 PM, Adam Magaluk [email protected] wrote:
Cloud looks like: var zetta = require('zetta'); zetta() .listen(5000); — Reply to this email directly or view it on GitHub #137 (comment).
var zetta = require('zetta');
zetta() .listen(5000);
— Reply to this email directly or view it on GitHub #137 (comment).
No branches or pull requests
In
lib/peer_socket
we're setting a spdy agent but not handling the error event on it. See: https://github.com/zettajs/zetta/blob/master/lib/peer_socket.js#L121-L133I saw this repeatably throw when continually connecting and disconnecting a peer.
Example to make the cloud throw a
ECONNRESET
or other error.We can handle the error like: PR coming soon.
The text was updated successfully, but these errors were encountered: