-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
broken docs or feature on "Simple TCP Example" #26777
Comments
There’s definely at least a missing let block there. Since it’s clearly trying to capture the value of sock, but is instead capturing the binding |
to be clear---it is not that I miscoded by me. it is your example out of the docs on https://docs.julialang.org/en/stable/manual/networking-and-streams/ regards, /iaw |
@vtjnash on master The next issue is that Another possible issue is that |
We could also change the |
...and if you are fixing the whole example anyway, showing how you would recommend the outside can/shall close the server would be great, too. /iaw |
That, or replace |
Also, and I'm not sure if this is the right place to discuss this, but currently, closing the client and server "cleanly" would require a I assume that the most common case would be a client disconnecting during a server read. Is a |
Well, I'm very much not a fan of the |
What would happen if the client is closed during a client read operation, or during a server read operation? |
Just copied from the docs:
oh, and the doc example would be better if the echo server would put something in front by itself, like "ECHO> ". /iaw
The text was updated successfully, but these errors were encountered: