hyperboria / bugs

Peer-to-peer IPv6 networking, secure and near-zero-conf.
154 stars 17 forks source link

Increase timeout of admin rpc from 5s to 10s #40

Open viric opened 9 years ago

viric commented 9 years ago

The current timeout is set to 5 seconds.

https://github.com/hyperboria/cjdns/blob/master/client/AdminClient.c#L313

This seems too slow to allow restarting cjdns in the sheevaplug (armv5tel 1.2GHz). If the machine had enough DHT traffic, it gets too flooded on restart and 5 seconds is not enough.

I think a timeout of 10 would be enough for this case. Otherwise we have to locally patch cjdns to have reliable restarts.