Post by j***@protonmail.comYes, that's it. I was not aware of this spec.
My use case is to try to set up a mining farm based on Raspberry-Pis. I did a
study showing that it's much more efficient for the same price or power user
https://www.linkedin.com/pulse/more-efficient-mining-raspberry-pi-julien-delorme/
Fun project there reminding me the build farm. I've left a comment with
some links to much better hardware than RPis :-)
Post by j***@protonmail.comAnd since haproxy is already used a lot and recommanded for this use case
(principally to give active-backup fonction between pools), I think it will
interest many of users to be able to improve their capacity and reduce the
risk to be banned.
I was not aware of this. Do you have any link ?
Post by j***@protonmail.comSo do you think it is something possible ?
Well, a quick look at the spec suggests HTTP for old versions and TCP for
new ones if I understand correctly. HTTP could theorically be merged using
"http-reuse" and "maxconn 1" on the server. However you will not get any
pipelining, I don't know if that's important or not (if the server takes
a long time to respond, your clients will have to wait for other responses
first). For the TCP one, I'm pretty certain that for now it's not supported,
and I don't really have an idea about what would be needed to support this,
very likely implementing multiplexed transactions, which would be more or
less as complicated as HTTP pipelining.
However the protocol looks easy enough to parse (JSON?) so I wouldn't be
surprised if you could implement it entirely using Lua.
Regards,
Willy