mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-30 16:19:03 +01:00
99efa104db
* Make the legacy ping handler more reliable The Minecraft server often fails to respond to old ("legacy") pings from old Minecraft versions using the protocol used before the switch to Netty in Minecraft 1.7. Due to packet fragmentation[1], we might not have all needed bytes available when the LegacyPingHandler is called. In this case, it will run into an error, remove the handler and continue using the modern protocol. This is unlikely to happen for the first two revisions of the legacy ping protocol (used in Minecraft 1.5.x and older) since the request consists of only one or two bytes, but happens frequently for the last/third revision introduced in Minecraft 1.6. It has much larger, variable packet sizes due to the inclusion of the virtual host (the hostname/port used to connect to the server). The solution[2] is simple: If we find more than two matching bytes, we buffer the remaining bytes until we have enough to fully read and respond to the request. [1]: https://netty.io/wiki/user-guide-for-4.x.html#wiki-h3-11 [2]: https://netty.io/wiki/user-guide-for-4.x.html#wiki-h4-13 * Add legacy ping support to PaperServerListPingEvent Add a new method to StatusClient check if the client is a legacy client that does not support all of the features provided in the event. |
||
---|---|---|
.. | ||
Ability-to-apply-mending-to-XP-API.patch | ||
Ability-to-change-PlayerProfile-in-AsyncPreLoginEven.patch | ||
Access-items-by-EquipmentSlot.patch | ||
Add-a-call-helper-to-Event.patch | ||
Add-API-methods-to-control-if-armour-stands-can-move.patch | ||
Add-ArmorStand-Item-Meta.patch | ||
Add-async-chunk-load-API.patch | ||
Add-BaseComponent-sendMessage-methods-to-CommandSend.patch | ||
Add-BeaconEffectEvent.patch | ||
Add-command-to-reload-permissions.yml-and-require-co.patch | ||
Add-configuration-option-to-prevent-player-names-fro.patch | ||
Add-EntityZapEvent.patch | ||
Add-exception-reporting-event.patch | ||
Add-extended-PaperServerListPingEvent.patch | ||
Add-getI18NDisplayName-API.patch | ||
Add-getTPS-method.patch | ||
Add-handshake-event-to-allow-plugins-to-handle-clien.patch | ||
Add-legacy-ping-support-to-PaperServerListPingEvent.patch | ||
Add-MetadataStoreBase.removeAll-Plugin.patch | ||
Add-methods-for-working-with-arrows-stuck-in-living-.patch | ||
Add-player-view-distance-API.patch | ||
Add-PlayerArmorChangeEvent.patch | ||
Add-PlayerInitialSpawnEvent.patch | ||
Add-PlayerJumpEvent.patch | ||
Add-PlayerLocaleChangeEvent.patch | ||
Add-PlayerUseUnknownEntityEvent.patch | ||
Add-ProjectileCollideEvent.patch | ||
Add-sender-name-to-commands.yml-replacement.patch | ||
Add-SkullMeta.setPlayerProfile-API.patch | ||
Add-source-to-PlayerExpChangeEvent.patch | ||
Add-String-based-Action-Bar-API.patch | ||
add-Trove-and-FastUtil-to-Bukkit.patch | ||
Add-UnknownCommandEvent.patch | ||
Add-workaround-for-plugins-modifying-the-parent-of-t.patch | ||
Add-World-createExplosion-Location-float-boolean-boo.patch | ||
Allow-Changing-of-Player-Sample-in-ServerListPingEve.patch | ||
Allow-plugins-to-use-SLF4J-for-logging.patch | ||
Allow-Reloading-of-Command-Aliases.patch | ||
API-to-get-a-BlockState-without-a-snapshot.patch | ||
Arrow-pickup-rule-API.patch | ||
AsyncTabCompleteEvent.patch | ||
Automatically-disable-plugins-that-fail-to-load.patch | ||
Basic-PlayerProfile-API.patch | ||
Check-Paper-versions.patch | ||
Complete-resource-pack-API.patch | ||
Custom-replacement-for-eaten-items.patch | ||
Display-warning-on-deprecated-recipe-API.patch | ||
ensureServerConversions-API.patch | ||
Entity-AddTo-RemoveFrom-World-Events.patch | ||
Entity-fromMobSpawner.patch | ||
Entity-Origin-API.patch | ||
EntityPathfindEvent.patch | ||
EntityRegainHealthEvent-isFastRegen-API.patch | ||
ExperienceOrbMergeEvent.patch | ||
ExperienceOrbs-API-for-Reason-Source-Triggering-play.patch | ||
Expose-client-protocol-version-and-virtual-host.patch | ||
Expose-server-CommandMap.patch | ||
Expose-WorldBorder-isInBounds-Location-check.patch | ||
Fill-Profile-Property-Events.patch | ||
Fireworks-API-s.patch | ||
Fix-ServerListPingEvent-flagging-as-Async.patch | ||
Fix-upstream-javadoc-warnings-and-errors.patch | ||
getPlayerUniqueId-API.patch | ||
Graduate-bungeecord-chat-API-from-spigot-subclasses.patch | ||
Handle-plugin-prefixes-in-implementation-logging-con.patch | ||
IllegalPacketEvent.patch | ||
Implement-deprecated-player-sample-API.patch | ||
Improve-the-Saddle-API-for-Horses.patch | ||
Item-canEntityPickup.patch | ||
LivingEntity-setKiller.patch | ||
LootTable-API.patch | ||
Made-EntityDismountEvent-Cancellable.patch | ||
Make-plugins-list-alphabetical.patch | ||
Misc-Utils.patch | ||
Optimize-Hoppers.patch | ||
Player-affects-spawning-API.patch | ||
Player-Tab-List-and-Title-APIs.patch | ||
Player.setPlayerProfile-API.patch | ||
PlayerAdvancementCriterionGrantEvent.patch | ||
PlayerAttemptPickupItemEvent.patch | ||
PlayerNaturallySpawnCreaturesEvent.patch | ||
PlayerPickupExperienceEvent.patch | ||
PlayerPickupItemEvent-setFlyAtPlayer.patch | ||
PlayerTeleportEndGatewayEvent.patch | ||
POM-changes.patch | ||
PreCreatureSpawnEvent.patch | ||
Profile-Lookup-Events.patch | ||
ProfileWhitelistVerifyEvent.patch | ||
Provide-E-TE-Chunk-count-stat-methods.patch | ||
Reduce-thread-synchronization-in-MetadataStoreBase.patch | ||
Shoulder-Entities-Release-API.patch | ||
Tameable-getOwnerUniqueId-API.patch | ||
Timings-v2.patch | ||
Use-ASM-for-event-executors.patch |