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

example中logoff_ms参数的作用 #2060

Closed
leaf-potato opened this issue Dec 24, 2022 · 3 comments
Closed

example中logoff_ms参数的作用 #2060

leaf-potato opened this issue Dec 24, 2022 · 3 comments

Comments

@leaf-potato
Copy link
Contributor

leaf-potato commented Dec 24, 2022

在example目录下大多数例子的server.cpp中都定义了logoff_ms这个gflag, 但似乎没有地方使用了这个参数。想问下这个参数在什么地方发挥作用呢?
image

@wwbmmm
Copy link
Contributor

wwbmmm commented Dec 26, 2022

这个是用来传递给Server::Stop方法的参数,不过按照注释,这个参数已不再使用

    // Stop accepting new connections and requests from existing connections.
    // Returns 0 on success, -1 otherwise.
    int Stop(int closewait_ms/*not used anymore*/);

@leaf-potato
Copy link
Contributor Author

这样的话是否可以提个PR删掉example中的这个gflag呢

@wwbmmm
Copy link
Contributor

wwbmmm commented Dec 26, 2022

可以的

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

3 participants