Skip to content
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

tcp server problem [ dispatch_mode 2 ] ... #491

Open
hoidream opened this issue Jan 17, 2025 · 1 comment
Open

tcp server problem [ dispatch_mode 2 ] ... #491

hoidream opened this issue Jan 17, 2025 · 1 comment

Comments

@hoidream
Copy link

1-1 Your software version (Screenshot of your startup)

Component Version
php 8.2.27
Open Swoole 4.12.1
LaravelS 3.8.3
Laravel Framework [local] 11.36.1

1-2 Protocols

Protocol Status Handler Listen At
Main HTTP On Laravel Router http://0.0.0.0:1215
Port#0 TCP IPV4 Socket On Xpush\Xserver 0.0.0.0:50001

2 Detail description about this issue
I need one http server and one tcp server.
So I set dispatch_mode to 2.
However, the tcp server will immediately terminate the client's connection when the client connects and sends it to the fd.

Here is my log

[2025-01-17 09:14:35] local.INFO: New TCP connection [14]
[2025-01-17 09:14:35] local.INFO: Received data [14,5,"\u0000\u0003\u0000\u0000\u0000 AUTHxpush_sample0\u0011aaa\u0011sessionid�","0003000000204155544878707573685f73616d706c6530116161611173657373696f6e6964ff"]
[2025-01-17 09:14:35] local.INFO: send ["00030000000e415554484f4b11617364636363ff","\u0000\u0003\u0000\u0000\u0000\u000eAUTHOK\u0011asdccc�"]
[2025-01-17 09:14:35] local.INFO: Close TCP connection [14]

What could be the problem?
I wonder if there are any similar cases.

@uptonyuan
Copy link

uptonyuan commented Jan 17, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants