-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dmsgweb handle multiple tcp connections correctly #270
Conversation
I get this error on test one:
Have same error on test two, also second proxy never run there:
Just first reverse proxy tcp server running, and 8004 never serving, based on logs.
|
@mrpalide I'm encountering inexplicable errors and would appreciate your insights / help here. I've updated the examples implementation, it should be easier to look at & work with Testing
... I see logging on all three terminal windows.
The logging prints on the hello world server when something connects. On the proxy to dmsg:
On the reverse proxy:
Nothing prints back from The code is basically the same between the tcp->dmsg proxy and the tcp->tcp proxy. There is something really subtle I'm missing here. |
As test, I just run this simple server, https://hub.docker.com/r/nginxdemos/hello/ , and test reverse proxy on it, and it works as well as! Great job Moses. Full logs: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work. Just needs handle CI issues on linter and formatting issue.
The examples worked, since I updated them. I didn't get to update my comment here. The issue now is with dmsgweb itself. I'm not able to connect to anything, I keep getting errors that the entry is not found in discovery when the key is in the discovery. It might be erroneous proxy configuration, I'm really not sure... annoying because this was working before as non-multiplexed
|
Testing
serve hello world via tcp on port 8000
serve hello world via tcp on port 8002
(optional sanity check) test the tcp proxy
use ncat to access the tcp server via the proxy
then, stop the terminal running tcp-proxy.
Now, test proxying via
dmsg web srv
Those ports are now served over dmsg
COPY THE CLIENT PK
use dmsgweb we can put them back on other localhost ports so that we can access with netcat
Keep in mind that the logic for a simgle instance is different from multiple instances, so test these separately
one:
two:
Now attempt to access them via ncat (desired output shown below)