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

try_start_receive是否可以省略_receive_token #222

Open
chukeer opened this issue Jan 20, 2018 · 0 comments
Open

try_start_receive是否可以省略_receive_token #222

chukeer opened this issue Jan 20, 2018 · 0 comments

Comments

@chukeer
Copy link

chukeer commented Jan 20, 2018

Server端连接首次try_start_receive是在RpcListener::on_accept里头调用RpcByteStream::set_socket_connected时出发,另外当发送完成后会在on_read_some里继续触发,虽然每次on_read_some是在不同线程执行,但执行过程是串行的

Client端连接首次try_start_receive是在RpcByteStream::on_connect里,另外发送完成后也是在on_read_some里继续触发,也不会有并行操作的可能

因此在try_start_receive里是不是可以不需要获取token

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

1 participant