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 connection->send always returns null #1031

Open
muramidaza opened this issue Apr 16, 2024 · 1 comment
Open

TCP connection->send always returns null #1031

muramidaza opened this issue Apr 16, 2024 · 1 comment

Comments

@muramidaza
Copy link

When sending data to a TCP connection, NULL is always returned. But the message always went to the addressee. Perhaps some settings need to be made?

@walkor
Copy link
Owner

walkor commented Apr 17, 2024

Sending data is asynchronous, and we cannot predict whether the data will actually be sent to the other party, so we return null which indicates that the data has been written to the application layer send buffer of the connection, waiting to be written to the socket send buffer of the system layer.
https://manual.workerman.net/doc/en/tcp-connection/send.html

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