<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[[其他]AsyncKeepAlive —— 减少网络和服务器卡顿掉线[1.7.10-1.13.2]]]></title><description><![CDATA[<p dir="auto"><em>本帖最后由 ishland 于 2019-2-24 13:18 编辑</em></p>
<p dir="auto">AsyncKeepAlive<br />
减少卡顿掉线<br />
最新版本：v0.2</p>
<p dir="auto">工作原理：单独开启一个异步的线程定时（每4秒）发送一次KeepAlive（心跳包）给在线玩家的客户端，减少因为低TPS、瞬间卡顿和网络丢包严重情况下玩家集体掉线的概率，本插件只能减少掉线的概率，不能提高网络传输速度。</p>
<p dir="auto">* 服务端会每20秒发送一次心跳包（KeepAlive）给所有客户端，客户端必须在30秒内回复这个心跳包，否则判断服务器离线，具体就表现成掉线。如果服务器突然卡顿，必然导致部分玩家掉线，如果卡顿超过20秒，必然全部玩家集体掉线，因为发送心跳包是以同步的方法运行在主线程，受到TPS低的影响则会导致发包速度和响应速度放缓。本插件开辟一个新的异步线程（不受TPS影响），每4秒发送一次心跳包，从而减少玩家在网络条件不佳和服务器TPS低与瞬卡的情况掉线的概率。<br />
已知Bug：1. 新的线程会出现无法关闭的问题，请不要重载服务器，否则将会发送更多KeepAlive</p>
<p dir="auto">本插件为重制插件，依赖于ProtocolLib。未来的将会跟随ProtocolLib更新。</p>
<p dir="auto">本插件使用MIT协议开源。Github地址：<a href="https://github.com/ishlandbukkit/AsyncKeepAlive" rel="nofollow ugc">https://github.com/ishlandbukkit/AsyncKeepAlive</a></p>
<p dir="auto">欢迎大家帮忙测试插件（该插件可能支持其他版本），已测试版本：<br />
1.13.2，ProtocolLib 4.4.0<br />
1.12.2，ProtocolLib 4.4.0<br />
1.11.2，ProtocolLib 4.4.0 Bukkit 1.7.10, ProtocolLib unknown By <a class="plugin-mentions-user plugin-mentions-a" href="/user/%E5%A4%9C%E5%A4%9C%E5%A4%9C" aria-label="Profile: 夜夜夜">@<bdi>夜夜夜</bdi></a>、</p>
<p dir="auto">开发版本：<a href="https://ci.ishland.com/job/AsyncKeepAlive/" rel="nofollow ugc">https://ci.ishland.com/job/AsyncKeepAlive/</a><br />
（下载第一个jar）</p>
<p dir="auto">更新日志：<br />
Release v0.2：<br />
+在Minecraft 1.11.2上测试通过<br />
+添加了1.8-1.11的支持<br />
+添加了新的线程处理心跳包，通过压力测试<br />
Release v0.1：<br />
+在Minecraft 1.12.2上测试通过<br />
+添加了bStats<br />
+添加了Minecraft版本检测</p>
<p dir="auto">本插件计划将向下支持。</p>
<p dir="auto">强调一遍：其他地址的插件均为本人发布本帖其他地址：<br />
<a href="https://www.spigotmc.org/resources/asynckeepalive.64676/" rel="nofollow ugc">https://www.spigotmc.org/resources/asynckeepalive.64676/</a><a href="http://www.mcbbs.net/thread-843701-1-1.html" rel="nofollow ugc">http://www.mcbbs.net/thread-843701-1-1.html</a><a href="/topic/31005/%E5%85%B6%E4%BB%96-asynckeepalive-%E5%87%8F%E5%B0%91%E7%BD%91%E7%BB%9C%E5%92%8C%E6%9C%8D%E5%8A%A1%E5%99%A8%E5%8D%A1%E9%A1%BF%E6%8E%89%E7%BA%BF-1.7.10-1.13.2">《［其他］AsyncKeepAlive —— 减少网络和服务器卡顿掉线［1.7…》</a><br />
bStats page:<a href="https://bstats.org/plugin/bukkit/AsyncKeepAlive" rel="nofollow ugc">https://bstats.org/plugin/bukkit/AsyncKeepAlive</a></p>
]]></description><link>https://www.zuimc.com/topic/31005/其他-asynckeepalive-减少网络和服务器卡顿掉线-1.7.10-1.13.2</link><generator>RSS for Node</generator><lastBuildDate>Mon, 30 Nov 2026 21:13:34 GMT</lastBuildDate><atom:link href="https://www.zuimc.com/topic/31005.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 11 Feb 2019 09:33:13 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [其他]AsyncKeepAlive —— 减少网络和服务器卡顿掉线[1.7.10-1.13.2] on Tue, 12 Feb 2019 06:17:16 GMT]]></title><description><![CDATA[<p dir="auto">请大家多多支持，谢谢大家</p>
]]></description><link>https://www.zuimc.com/post/470145</link><guid isPermaLink="true">https://www.zuimc.com/post/470145</guid><dc:creator><![CDATA[ishland]]></dc:creator><pubDate>Tue, 12 Feb 2019 06:17:16 GMT</pubDate></item></channel></rss>