very strange.. it works fine if there is only one pool, but when I add multiples, it simply doesn't work. I have also noticed that my stale/rejected shares went up extremely high... In deepbit, for the last month I have been under 1% stales. Using the proxy, I'm at almost 20% rejected shares
I was really hoping that this would work
That's weird.
The code path isn't any different if you have one or more pools configured...
If any of you are still having stale share issues, would you mind taking a capture of the network traffic? On the proxy host, issue this as root:
tcpdump -w proxy.pcap -s 65535 'port 80 or portrange 8332-8337'
Then email me the proxy.pcap file after an hour or two. Note that this file will contain
all of the traffic on these ports and this means that I will have access to your proxy worker passwords
as well as your pool worker passwords. You may certainly encrypt the file to my GPG key if you are worried about the file being intercepted. (Specifically, note that if you talk to a bitcoind from the web server, this will expose your RPC password! So be especially careful in this case. I'm not going to misuse this information, but... well, if I were you, I wouldn't trust me blindly either.
)
If possible, capture traffic from the workers to the pools directly, without the proxy, and email me that as a separate file. Comparing the two files will help me determine what's going on.
Even better, if you're using a pool supporting long-polling, have one miner going through the proxy and at the same time another one not using the proxy, and mail me both files. Seeing how the long-polling requests return in both cases (they
should be identical...) will help me diagnose this.
Thanks all for the feedback, donations, and support! It's heartening to know that the software is fulfilling its purpose and that people find it helpful.