fix: jsonrpc url parsing and dial function#6264
fix: jsonrpc url parsing and dial function#6264mergify[bot] merged 11 commits intotendermint:masterfrom
Conversation
|
@fdymylja is this ready for review? I see its still in draft. |
Nope not yet. Unfortunately I need to use the CI to run tests because I'm on windows :( |
Let me know if you need any help testing, we can hop on a call. |
Codecov Report
@@ Coverage Diff @@
## master #6264 +/- ##
==========================================
+ Coverage 60.74% 60.86% +0.11%
==========================================
Files 281 281
Lines 26638 26648 +10
==========================================
+ Hits 16180 16218 +38
+ Misses 8766 8754 -12
+ Partials 1692 1676 -16
|
|
@alexanderbez @marbar3778 I opened it, would you mind reviewing again? Sum is: preserve old behaviour only towards unix sockets, if it's not a unix socket use the URL semantics to provide valid paths. On a side note, it still flies over my head how exposing an HTTP server via unix sockets and calling it through a client does not give path issues when querying tendermint. (it might even bring up hostname headers issues if the client and server do not parse the hostname in the same way, as now we hack it by replacing '/' with '.' to make it look like a valid URL on the client side) |
This PR fixes how the jsonrpc parses the URL, and how the dial function connects to the RPC.
Closes: #6260