-
Notifications
You must be signed in to change notification settings - Fork 2.6k
issue with --ws-max-connections on http requests #13561
Comments
CC @niklasad1 |
You are doing the call against the old HTTP server right i.e, port The server running on Thus, if we continue and merge #13384 this will be fixed. Otherwise, I suppose we need to expose another CLI flag for the "HTTP server only" or just hardcode it some huge value. |
@niklasad1 I didn't use rpc-port in my config, I've exposed both ws and rpc on default ports 9933 and 9944 I also tried |
sorry my bad, it is Assuming 9933 from your description... |
Exactly. 9933 for http and 9944 for ws connections |
As I tried to explain earlier the "port 9933 endpoint" has the number of connection hardcoded to 100 but 9944 supports both HTTP and WS based on Can you double check doing the HTTP requests against 9944 as well? 🙏 |
yes. That's correct. 9944 can support both |
but we still have this message
is it only information log or an error? |
I would not regard it as an error, the remote peer/client closed the connection thus "information log" I think we can make this log I expect this log only be visible if something goes wrong when reading the socket as the error directly comes from https://docs.rs/hyper/latest/hyper/server/conn/struct.Http.html#method.serve_connection |
well even in debug mode I couldn't find anything related to it (at least for me) we just have many connectivity error to peers node. it seems because port 30333is not reachable. I'm not sure if it's relevant to
|
libp2p and jsonrpc errors are not related in general, so for libp2p errors please open another issue. As I said before just ignore this JSON-RPC server warning, it just that the client is not connected anymore. |
Thanks @niklasad1 for insights, we didn't get that both ports were merged behind By the way, would it be possible to set the message "Accepting new connection" in debug for HTTP server? It makes the node logs very large on an http server and doesn't really makes sense since connections don't stay open on it. |
Yes |
Closed by #13384 Now, the |
Is there an existing issue?
Experiencing problems? Have you tried our Stack Exchange first?
Description of bug
following https://substrate.stackexchange.com/questions/7485/parachain-rpc-errors-since-polkadot-0-9-36-client-upgrade post. I believe the issue is related to
--ws-max-connections
. it only works on WS connection, not on HTTP requests.As you can see in attached images I have a node for both WS and HTTP requests. I set
--ws-max-connections 50000
but it only works on WS requests not on HTTP requests. when I sent more than 100 http requests it started to to generate"Transport endpoint is not connected"
error/message. It has nothing with SSL/TLS. I tested on both http and https protocols.Steps to reproduce
I use https://github.com/shazow/ethspam and https://github.com/INFURA/versus to generate valid jsonrpc queries. the command that I use
The text was updated successfully, but these errors were encountered: