Re: [Bitcoin-development] Adding a pong message

2012-03-13 Thread Mike Hearn
TCP keep-alives aren't reliably implemented. I've got reports that sometimes we struggle to keep connection to the network on mobile, eg, because we roam into an area with poor connectivity but not poor enough for the network stack to drop access entirely. Being able to quickly check if the connec

Re: [Bitcoin-development] Adding a pong message

2012-03-13 Thread Matt Corallo
On Tue, 2012-03-13 at 14:45 -0400, Luke-Jr wrote: > On Tuesday, March 13, 2012 2:06:38 PM Mike Hearn wrote: > > https://github.com/bitcoin/bitcoin/pull/932 adds a "pong" message that > > echoes back a 64 bit nonce contained in the ping, if the protocol > > version is new enough. > > > > The goal o

Re: [Bitcoin-development] Adding a pong message

2012-03-13 Thread Luke-Jr
On Tuesday, March 13, 2012 2:06:38 PM Mike Hearn wrote: > https://github.com/bitcoin/bitcoin/pull/932 adds a "pong" message that > echoes back a 64 bit nonce contained in the ping, if the protocol > version is new enough. > > The goal of this is to make it easier for clients, especially mobile > c

[Bitcoin-development] Adding a pong message

2012-03-13 Thread Mike Hearn
https://github.com/bitcoin/bitcoin/pull/932 adds a "pong" message that echoes back a 64 bit nonce contained in the ping, if the protocol version is new enough. The goal of this is to make it easier for clients, especially mobile clients, to quickly check if a connection is stale, and also to see i

Re: [Bitcoin-development] Adding a pong message to the protocol

2011-09-05 Thread Mike Hearn
> I'd rather see effort spent on the root issues, e.g. having nodes > gauge their own suitability (working inbound port, reasonably current > block chain, etc) before becoming advertised listeners. They can't always judge it, eg if the link between you and that peer is saturated then you may have

Re: [Bitcoin-development] Adding a pong message to the protocol

2011-09-05 Thread Gregory Maxwell
On Mon, Sep 5, 2011 at 8:04 AM, Mike Hearn wrote: > I haven't written a patch for this, I might do so if there's > sufficient interest. [snip] > Thoughts? I'd rather see effort spent on the root issues, e.g. having nodes gauge their own suitability (working inbound port, reasonably current block

[Bitcoin-development] Adding a pong message to the protocol

2011-09-05 Thread Mike Hearn
I haven't written a patch for this, I might do so if there's sufficient interest. Nodes that are under heavy load exhibit extremely high latency, this makes downloading the block chain from a node that is itself downloading the block chain basically useless as it takes 30-60 seconds for the node t