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

添加KeepRetry值校验 #56

Merged
merged 1 commit into from
Sep 8, 2024
Merged

添加KeepRetry值校验 #56

merged 1 commit into from
Sep 8, 2024

Conversation

liu2-3zhi
Copy link
Contributor

添加KeepRetry值校验,避免KeepRetry为空或者小于等于零。

添加KeepRetry值校验,避免KeepRetry为空或者小于等于零。
@liu2-3zhi
Copy link
Contributor Author

#55

@Rsplwe
Copy link
Owner

Rsplwe commented Sep 8, 2024

有个问题,当keepRetry值为空的时候,是不是说明网络已经被断掉了呢?

@liu2-3zhi
Copy link
Contributor Author

反正我这没断网也返回空.......

@liu2-3zhi
Copy link
Contributor Author

我现在都还是返回的空值,但是我却可以发出GitHub的评论

@liu2-3zhi
Copy link
Contributor Author

[06:12:03 295] INFO [com.rsplwe.esurfing.Client] (Client:80) - The login has been authorized.
[06:12:18 992] INFO [com.rsplwe.esurfing.Client] (Client:37) - Send Keep Packet
[06:12:19 259] INFO [com.rsplwe.esurfing.Client] (Client:39) - Next Retry: 480
[06:20:19 452] INFO [com.rsplwe.esurfing.Client] (Client:37) - Send Keep Packet
[06:20:19 554] WARN [com.rsplwe.esurfing.Client] (Client:205) - KeepRetry value is incorrect after heartbeat, setting to default: 60
[06:20:19 554] INFO [com.rsplwe.esurfing.Client] (Client:39) - Next Retry: 60
[06:21:20 103] INFO [com.rsplwe.esurfing.Client] (Client:37) - Send Keep Packet
[06:21:20 207] WARN [com.rsplwe.esurfing.Client] (Client:205) - KeepRetry value is incorrect after heartbeat, setting to default: 60
[06:21:20 207] INFO [com.rsplwe.esurfing.Client] (Client:39) - Next Retry: 60
[06:22:20 629] INFO [com.rsplwe.esurfing.Client] (Client:37) - Send Keep Packet
[06:22:20 753] WARN [com.rsplwe.esurfing.Client] (Client:205) - KeepRetry value is incorrect after heartbeat, setting to default: 60
[06:22:20 753] INFO [com.rsplwe.esurfing.Client] (Client:39) - Next Retry: 60
[06:23:21 478] INFO [com.rsplwe.esurfing.Client] (Client:37) - Send Keep Packet
[06:23:21 585] WARN [com.rsplwe.esurfing.Client] (Client:205) - KeepRetry value is incorrect after heartbeat, setting to default: 60
[06:23:21 586] INFO [com.rsplwe.esurfing.Client] (Client:39) - Next Retry: 60

感觉其实当heartbeat的KeepRetry为空时,可以直接沿用login时候的KeepRetry。

@Rsplwe
Copy link
Owner

Rsplwe commented Sep 8, 2024

可以试着把返回的内容打印出来,看是缺了什么

val data = session!!.decrypt(result.data.string())

@liu2-3zhi
Copy link
Contributor Author

liu2-3zhi commented Sep 8, 2024

算了,折腾不起,我这边登录一次就冻结半小时.....简单粗暴,直接添加KeepRetry检验得了,你这个程序注销有问题....
地址是拿到了,但是注销不成功

[06:12:03 294] INFO [com.rsplwe.esurfing.Client] (Client:170) - Keep Url: http://14.146.227.142:7001/keep.cgi
[06:12:03 294] INFO [com.rsplwe.esurfing.Client] (Client:171) - Term Url: http://14.146.227.141:7001/term.cgi

@Rsplwe Rsplwe merged commit ad2f83e into Rsplwe:main Sep 8, 2024
1 check passed
@liu2-3zhi
Copy link
Contributor Author

liu2-3zhi commented Sep 12, 2024

我的#56 怎么被移除了

@liu2-3zhi
Copy link
Contributor Author

@Rsplwe

@Rsplwe
Copy link
Owner

Rsplwe commented Sep 12, 2024

我的#56 怎么被移除了

根据逆向后的程序逻辑,无keep-retry的情况不存在

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

Successfully merging this pull request may close these issues.

2 participants