Skip to content
This repository has been archived by the owner on Nov 20, 2022. It is now read-only.

multi-echo-server example did not close connection #62

Open
arifsetiawan opened this issue Feb 19, 2016 · 1 comment
Open

multi-echo-server example did not close connection #62

arifsetiawan opened this issue Feb 19, 2016 · 1 comment

Comments

@arifsetiawan
Copy link

Hi,

First, thanks a lot for the book and examples, really useful.

If I run tcp-echo-server and use netcat to test, connection is closed immediately

[root@375f8431ca9f code]# echo -n 'hello!' | nc 127.0.0.1 7000
hello![root@375f8431ca9f code]# 

however, if I run multi-echo-server the connection is not closed

[root@375f8431ca9f code]# echo -n 'hello!' | nc 127.0.0.1 7000
hello!

Is this expected behavior because of using child process?

@nikhilm
Copy link
Owner

nikhilm commented Apr 20, 2016

Excellent question. I'm not sure what is the reason. It should not be due to the different architecture because the main process just sends the socket FD to the worker.

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

No branches or pull requests

2 participants