1

使用AzerothCore,一些客户端在非正常关闭客户端应用程序(例如按下alt+f4或终止客户端进程)后保持登录一段时间。

有没有办法改变这种行为?例如减少客户端在 ide 后断开连接的时间?

4

1 回答 1

1

这是可配置的worldserver.conf

#
#    SocketTimeOutTime
#        Description: Time (in milliseconds) after which a connection being idle on the character
#                     selection screen is disconnected.
#        Default:     900000 - (15 minutes)

SocketTimeOutTime = 900000

#
#    SocketTimeOutTimeActive
#        Description: Time (in milliseconds) after which an idle connection is dropped while
#                     logged into the world.
#                     The client sends keepalive packets every 30 seconds. Values <= 30s are not recommended.
#        Default:     60000 - (1 minute)

SocketTimeOutTimeActive = 60000

更改这些设置将使其成功,然后.reload config或重新启动世界服务器。

意识到:

不建议使用 <= 30 的值。

因此,在客户端崩溃的情况下,一位用户仍然可以有时间在线返回而不会产生副作用。

感谢@Viste的建议。

于 2019-01-13T16:51:58.033 回答