You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now I have written a WebSocket performance testing tool based on the client code of websocket-benchmark. In that benchmark, the server can listen on a lot of port so the client setup millions of connections. But our production server will only expose one port.
I look at the code. ConnectCoroutine::act() of oatpp/src/oatpp/network/tcp/client/ConnectionProvider.cpp is responsible for create TCP socket. I think if we can bind IP after create socket and before connect. Can we change oatpp/network/Address.hpp and make it contain the client IP. Then we can use it in ConnectCoroutine::act().
The text was updated successfully, but these errors were encountered:
Now I have written a WebSocket performance testing tool based on the client code of websocket-benchmark. In that benchmark, the server can listen on a lot of port so the client setup millions of connections. But our production server will only expose one port.
I look at the code.
ConnectCoroutine::act()
ofoatpp/src/oatpp/network/tcp/client/ConnectionProvider.cpp
is responsible for create TCP socket. I think if we can bind IP after createsocket
and beforeconnect
. Can we changeoatpp/network/Address.hpp
and make it contain the client IP. Then we can use it inConnectCoroutine::act()
.The text was updated successfully, but these errors were encountered: