Author

Topic: Bitcoin JSON RPC Connection gets reset by client... (Read 1921 times)

member
Activity: 70
Merit: 10
Well, the code is broken, it mishandles persistent connections. But its breakage is manifesting in a way that is permitted by the standard. So if it affects other code, that code is broken too. Smiley

Thanks.


Well, in that case, PHP is broken. Tongue

I think I'll be adding in your patch and recompiling the code.
legendary
Activity: 1596
Merit: 1012
Democracy is vulnerable to a 51% attack.
Well, the code is broken, it mishandles persistent connections. But its breakage is manifesting in a way that is permitted by the standard. So if it affects other code, that code is broken too. Smiley

Thanks.
member
Activity: 70
Merit: 10
This is legal behavior, and if it confuses some other code, that code is broken. See section 8.1.4.4 of the HTTP 1.1 specification: "A client, server, or proxy MAY close the transport connection at any time. ... This means that clients, servers, and proxies MUST be able to recover from asynchronous close events."

That said, the bitcoin client hopelessly bungles persistent and concurrent connections. A fix for this is one of the fixes in my '3diff' patch set. http://davids.webmaster.com/~davids/bitcoin-3diff.txt


Thanks for clearing that up! The code isn't broken, but it's just a warning. It shouldn't interfere with anything in production.
legendary
Activity: 1596
Merit: 1012
Democracy is vulnerable to a 51% attack.
This is legal behavior, and if it confuses some other code, that code is broken. See section 8.1.4.4 of the HTTP 1.1 specification: "A client, server, or proxy MAY close the transport connection at any time. ... This means that clients, servers, and proxies MUST be able to recover from asynchronous close events."

That said, the bitcoin client hopelessly bungles persistent and concurrent connections. A fix for this is one of the fixes in my '3diff' patch set. http://davids.webmaster.com/~davids/bitcoin-3diff.txt
member
Activity: 70
Merit: 10
member
Activity: 70
Merit: 10
Occasionally, PHP returns an error similar to this: "ErrorException [ Warning ]: fgets(): SSL: Connection reset by peer" when sending api commands to the bitcoin server. What can I do to resolve this issue?
Jump to: