LearnBitcoin

Bitcoin Dev Archive 2011

0.3.23+patches bug: JSON-RPC leaves sockets around when not connected

2 messages, 9 Sep 2011. Started by Luke Dashjr.

Luke Dashjr, John Smith

Permalink Original thread on gnusha.org

Luke Dashjr permalink original
On Eligius, I have two bitcoinds running on the same system:
- a hub node, which is dedicated to relaying network activity between the
  hundreds of nodes Eligius peers with
- a work node, which is dedicated to managing mining, and only ever connects
  to the hub node

Lately, the hub node has been dying (yet to determine cause; I haven't changed anything recently), leaving the work node with no connections. The work node, of course, starts responding to getworks with "not connected" messages. Strangely enough, the sockets used for these are never cleaned up properly, and eventually overflow the system's socket limits.

I am using a very heavily patched 0.3.23, so this bug could be related to one of those patches (perhaps the threaded JSON-RPC?), but I felt like I should mention it somewhere else just in case before 0.4 final got released. I have not tried to reproduce it on an unpatched bitcoind yet, and am extremely busy lately so I might not get a chance before you guys finish 0.4.

John Smith in reply to Luke Dashjr permalink original

On Fri, Sep 9, 2011 at 6:57 AM, Luke-Jr <luke@dashjr•org> wrote:

Quoted text (10 lines)
> On Eligius, I have two bitcoinds running on the same system:
> - a hub node, which is dedicated to relaying network activity between the
>  hundreds of nodes Eligius peers with
> - a work node, which is dedicated to managing mining, and only ever
> connects
>  to the hub node
>
> Lately, the hub node has been dying (yet to determine cause; I haven't
> changed
> anything recently),

Stack trace or it didn't happen :p

JS