Commit Graph

  • 5e025e3b9f Please don't spam console every ping. md_5 2013-02-15 18:25:53 +1100
  • 44e5fd627f Remove extra disconnect info - confuses people into thinking something is wrong md_5 2013-02-14 17:33:09 +1100
  • 3bbde30ab0 Remove locking in favour of a volatile state variable. md_5 2013-02-13 12:22:25 +1100
  • 58689d2251 Break packet reading into states to reduce object churn. md_5 2013-02-13 12:11:37 +1100
  • 38fce03c91 Reorder check for isEmpty, on a ConcurrentLinkedQueue its more expensive than would appear. md_5 2013-02-12 16:29:15 +1100
  • e68c3ad981 Switch back to unbounded queue. md_5 2013-02-12 16:23:43 +1100
  • e49c07587e Fix orebfuscator enabled log message Agaricus 2013-02-10 20:04:32 -0800
  • 9258faff3f Apply entity activation range, the most over hyped commit ever. md_5 2013-02-11 19:32:14 +1100
  • 9e988bd787 Automatically update upstream versions. Bukkit-1.4.7-R1.0-2-g23f5a05, CraftBukkit-1.4.7-R1.0-9-g65324d6 EcoCityCraft 2013-02-10 17:41:21 -0600
  • b7ffd83675 Add proper thread safety. Please let me know if this deadlocks your server. md_5 2013-02-10 18:35:09 +1100
  • 36f3a7a7f2 If you are a server list owner, and you have not fixed your shit, I kindly request that you do so NOW. I will not waste another 5 hours of my life covering up for you. 4 months is more than long enough for 3 lines of code change. md_5 2013-02-10 16:50:54 +1100
  • cb11c55f81 Add volatile to be sure the JVM wont cache the value md_5 2013-02-10 15:12:35 +1100
  • 4b4eea9e4b Fix occasionally showing as 1.3 md_5 2013-02-10 15:04:27 +1100
  • 27bed04351 Revert "Reduce legacy ping threshold to 1000ms" md_5 2013-02-10 14:52:14 +1100
  • d2bb5e9ad6 Reduce legacy ping threshold to 1000ms md_5 2013-02-10 14:35:13 +1100
  • 7a9eda4b61 Fix legacy pinging with some uber ninja coding. md_5 2013-02-10 14:26:59 +1100
  • 4542cc4a23 Fix support for windows xp / server 2003 md_5 2013-02-10 12:35:52 +1100
  • b3e5c97f6b It came to me in a dream - literally. This should fix all known issues. md_5 2013-02-10 11:54:49 +1100
  • 60cb2f461b Tweak to thread pool and safety. md_5 2013-02-10 10:30:58 +1100
  • 86bb33ece7 Clearing the queue when they are disconnected might actually fix some issues. md_5 2013-02-10 09:33:31 +1100
  • ff911e1872 Add extra info regarding why a user is disconnected. Should help us troubleshoot these errors - please post the full DC line if reporting a bug. md_5 2013-02-10 08:55:18 +1100
  • 0dd4f55fd9 *break when dc'd md_5 2013-02-09 23:00:03 +1100
  • 3e21bba4ee Remove debug code now that we know it can be called. md_5 2013-02-09 22:54:14 +1100
  • 0dd0ebb15f Run disconnect code on the main thread. md_5 2013-02-09 21:55:33 +1100
  • 9bca4e4b70 Add debug to see if statement is ever true md_5 2013-02-09 21:28:34 +1100
  • 5e80c9de0b Give a pot shot at bringing network logic a bit closer to CB/Vanilla md_5 2013-02-09 21:05:34 +1100
  • 3302eedef5 Small cleanup to netty code, no functional changes. md_5 2013-02-09 20:58:03 +1100
  • a2ffb31ddb Don't scare users with debug mode. md_5 2013-02-09 20:42:08 +1100
  • 41579ff315 Add debug logging + more cleanup md_5 2013-02-09 20:27:25 +1100
  • f4572d5786 Nullcheck channel just in case, only null channel on disconnect. md_5 2013-02-09 20:16:23 +1100
  • 56d3bd5f39 Use a synced arraylist md_5 2013-02-09 20:10:34 +1100
  • d212863aa7 Implement an uber efficient network engine based on the Java NIO framework Netty. This is basically a complete rewrite of the Minecraft network engine with many distinct advantages. First and foremost, there will no longer be the horrid, and redundant case of 2, or even at times, 3 threads per a connection. Instead low level select/epoll based NIO is used. The number of threads used for network reading and writing will scale automatically to the number of cores for use on your server. In most cases this will be around 8 threads for a 4 core server, much better than the up to 1000 threads that could be in use at one time with the old engine. To facilitate asynchronous packet sending or receiving (currently only chat), a cached thread pool is kept handy. Currently this pool is unbounded, however at this stage we do not need to worry about servers being resource starved due to excessive spam or chat. == Plugin incompatibilities As a side effect of this change, plugins which rely on very specific implementation level details within Minecraft are broken. At this point in time, TagAPI and ProtocolLib are affected. If you are a user of ProtocolLib you are advised to update to the latest build, where full support is enabled. If you are a user of TagAPI, support has not yet been added, so you will need to install the updated ProtocolLib so that TagAPI may use its functions. == Stability The code within this commit has been very lightly tested in production (300 players for approximately 24 hours), however it is not guaranteed to be free from all bugs. If you experence weird connection behaviour, reporting the bug and steps to reproduce are advised. You are also free to downgrade to the latest recommend build, which is guaranteed to be stable. == Summary This commit provides a reduction in threads, which gives the CPU / operating system more time to allocate to the main server threads, as well as various other side benefits such as chat thread pooling and a slight reduction in latency. This commit is licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported license. md_5 2013-02-09 17:16:27 +1100
  • ed84749d6e Split TPS patch out correctly. md_5 2013-02-08 17:09:51 +1100
  • a1e8ebf5b9 Please people, report to Spigot, not me md_5 2013-02-07 20:23:31 +1100
  • 9a4bc05358 Send maps even less often, still causing lag. Appreciate if anyone can PR a config option for this, bit busy atm. md_5 2013-02-06 21:08:37 +1100
  • b864492e7a Automatically update upstream versions. Bukkit-1.4.7-R1.0-2-g23f5a05, CraftBukkit-1.4.7-R1.0-5-g6c77179 EcoCityCraft 2013-02-04 18:56:19 -0600
  • 28fbbb823b Automatically update upstream versions. Bukkit-1.4.7-R1.0-2-g23f5a05, CraftBukkit-1.4.7-R1.0-1-gf6e394d EcoCityCraft 2013-02-03 04:11:52 -0600
  • 72acec7f20 Move tick loop changes to own patch with a few optimizations. md_5 2013-02-03 12:28:39 +1100
  • 7b4bba6b3b Actually use the parent pom. md_5 2013-02-03 09:54:16 +1100
  • 5853e18f40 Just use the parent pom. md_5 2013-02-03 09:48:23 +1100
  • 277b59e4b9 Update POM changes to individual patches. md_5 2013-02-03 09:38:54 +1100
  • 841693a0c0 Detect, remove and warn about null tile entities. This prevents odd server crashes, caused by unknown reasons. md_5 2013-02-03 09:21:35 +1100
  • 7d858839a7 Send maps, just a lot less often. md_5 2013-02-02 19:41:11 +1100
  • 5efea6f794 Only nag if we are finding for the first time.. md_5 2013-02-02 18:11:59 +1100
  • b8994aff61 Abuse plugins which embed metrics in the default location. md_5 2013-02-02 16:41:52 +1100
  • 37dc2fc1c4 Plugins break when the intended behaviour is put into place, because for some reason they are all packaging the same classes, an inherently unsafe operation in the case that the classes are loaded at the same time by multiple classloaders - hence we are removing safety from the loaders for now until a correct solution can be put in place. md_5 2013-02-02 16:30:39 +1100
  • 87ac58c259 Another attempt at 'fixing' the mob spawn issues present in CraftBukkit. md_5 2013-02-02 09:02:14 +1100
  • cd35b5e5b0 Update to CraftBukkit 1.4.7-R1 md_5 2013-01-31 16:56:47 +1100
  • b809164b5d Automatically update upstream versions. Bukkit-1.4.7-R1.0-1-gf598dac, CraftBukkit-1.4.7-R1.0-1-gf6e394d EcoCityCraft 2013-01-30 22:51:16 -0600
  • c7057aa887 Automatically update upstream versions. Bukkit-1.4.7-R1.0, CraftBukkit-1.4.7-R1.0 EcoCityCraft 2013-01-30 22:41:17 -0600
  • 01a0395fa3 Automatically update upstream versions. Bukkit-1.4.7-R0.1-6-g3fc631f, CraftBukkit-1.4.7-R0.1-26-gabccf54 EcoCityCraft 2013-01-30 00:21:30 -0600
  • 35915ce6cf Automatically update upstream versions. Bukkit-1.4.7-R0.1-6-g3fc631f, CraftBukkit-1.4.7-R0.1-23-gf07dbe2 EcoCityCraft 2013-01-29 07:51:18 -0600
  • a65fedb3f8 Mob spawning issues - 'fix'. See below for ideal reasoning from MikePrimm, however until ideal reasoning we must live with the CraftBukkit / Vanilla behaviour since this causes far too many issues. md_5 2013-01-29 16:54:36 +1100
  • 165c72a896 Automatically update upstream versions. Bukkit-1.4.7-R0.1-6-g3fc631f, CraftBukkit-1.4.7-R0.1-21-geea7fc2 EcoCityCraft 2013-01-27 23:05:48 -0600
  • c686f927a4 Automatically update upstream versions. Bukkit-1.4.7-R0.1-6-g3fc631f, CraftBukkit-1.4.7-R0.1-20-gdeda98a EcoCityCraft 2013-01-27 17:50:51 -0600
  • 2124e746b7 10 years later... md_5 2013-01-28 09:46:19 +1100
  • a645cd688d Automatically update upstream versions. Bukkit-1.4.7-R0.1-6-g3fc631f, CraftBukkit-1.4.7-R0.1-19-g4aae815 EcoCityCraft 2013-01-27 11:36:36 -0600
  • 4b6eabfc58 Automatically update upstream versions. Bukkit-1.4.7-R0.1-6-g3fc631f, CraftBukkit-1.4.7-R0.1-16-g226204e EcoCityCraft 2013-01-26 13:56:36 -0600
  • 3faf5e20e5 Fix tripwires + minecarts md_5 2013-01-26 08:33:09 +1100
  • 5742900e16 Fix exp merging, oops md_5 2013-01-25 18:25:18 +1100
  • 01b495fd02 Update patch fluff + only record sync times. md_5 2013-01-25 14:00:07 +1100
  • 71abb6768d Automatically update upstream versions. Bukkit-1.4.7-R0.1-5-g7f87d99, CraftBukkit-1.4.7-R0.1-16-g226204e EcoCityCraft 2013-01-24 20:46:35 -0600
  • 5dba601889 Add anti xray timings. md_5 2013-01-25 13:27:22 +1100
  • ce6f9c7505 Automatically update upstream versions. Bukkit-1.4.7-R0.1-5-g7f87d99, CraftBukkit-1.4.7-R0.1-14-gd291a6b EcoCityCraft 2013-01-24 19:56:33 -0600
  • cc5229ad6d Well, mike was right about deadlocks. md_5 2013-01-25 11:35:20 +1100
  • 33ac93e0ae Automatically update upstream versions. Bukkit-1.4.7-R0.1-5-g7f87d99, CraftBukkit-1.4.7-R0.1-13-g6193da6 EcoCityCraft 2013-01-24 18:11:33 -0600
  • eb9bcf4ad8 Automatically update upstream versions. Bukkit-1.4.7-R0.1-5-g7f87d99, CraftBukkit-1.4.7-R0.1-12-gd9ff553 EcoCityCraft 2013-01-24 04:11:38 -0600
  • 4f044403de Handle patches merged to craftbukkit md_5 2013-01-24 21:09:10 +1100
  • 21a8ef9729 Fix AIOOBE md_5 2013-01-24 19:28:22 +1100
  • 0c9154899b Make the plugin classloader a bit more thread safe to prevent class not found errors when a class is loaded at the same time from another thread. md_5 2013-01-24 09:33:34 +1100
  • 059fcbc8bd Quick fix for oreobf crash, @lishid md_5 2013-01-24 09:13:53 +1100
  • 5fc216e651 Automatically update upstream versions. Bukkit-1.4.7-R0.1-4-g6eeaee4, CraftBukkit-1.4.7-R0.1-9-g2bd76ff EcoCityCraft 2013-01-23 06:21:27 -0600
  • b0818d26c4 Automatically update upstream versions. Bukkit-1.4.7-R0.1-3-gbbc75c4, CraftBukkit-1.4.7-R0.1-8-ged63bd5 EcoCityCraft 2013-01-22 17:51:32 -0600
  • 6b463d9614 Fix lightning - use vanilla lightning code. md_5 2013-01-22 15:58:34 +1100
  • 38a24558c2 Disable the ability to disable chunk-gc Aikar 2013-01-21 22:53:50 -0500
  • 7cdf470eab Move Spigot config initialization code into its own class, and use it for /reload. Aikar 2013-01-21 21:46:53 -0500
  • 41b7c5f465 Update rebuildPatches to ignore git version string. Aikar 2013-01-21 21:46:26 -0500
  • 17af62c898 Reduce number of collision checks for living entities. md_5 2013-01-22 10:04:57 +1100
  • 205b31cfa2 Add @EddGruberman's patch to fix nether portals when the nether is disabled. md_5 2013-01-22 09:58:57 +1100
  • 43dc376b03 Check if chunk is loading before obfuscating. md_5 2013-01-22 09:57:22 +1100
  • f440cb30ed Switch to pwd so the scripts can work more reliably on other OSs md_5 2013-01-21 20:24:30 +1100
  • 7dcc1ceac4 Notify all adjacent blocks, thanks Aikar md_5 2013-01-21 17:51:34 +1100
  • c22ab4c897 Fix obfuscator being a little too effective. md_5 2013-01-21 17:38:13 +1100
  • 3d4920ebd6 Add oreobfuscator by @lishid for Spigot. Please report bugs and use with caution until stability can be verified. md_5 2013-01-21 17:00:31 +1100
  • c9bd55724e Better item merging md_5 2013-01-21 14:32:12 +1100
  • b31a31a6a8 Fix conflicts to update to latest Bukkit, yay fluff. md_5 2013-01-20 14:52:20 +1100
  • efa13af283 Make apply patches target HEAD of upstream and squelch some fluff on applying. Aikar 2013-01-19 14:04:56 -0500
  • 4df099d776 Automatically update upstream versions. Bukkit-1.4.7-R0.1-2-g127e74c, CraftBukkit-1.4.7-R0.1-8-ged63bd5 EcoCityCraft 2013-01-19 08:20:48 -0600
  • fe58ab0421 Automatically update upstream versions. Bukkit-1.4.7-R0.1-2-g127e74c, CraftBukkit-1.4.7-R0.1-6-g2b7950f EcoCityCraft 2013-01-19 06:25:52 -0600
  • 648a5d145b Aikar is backwards, AND likes Java 7 md_5 2013-01-19 19:32:06 +1100
  • 84f611144b Add Aikar's timings patches. md_5 2013-01-19 19:28:14 +1100
  • 3b88df5a42 Apparently this is the correct regex. md_5 2013-01-19 19:24:36 +1100
  • f23a5fd90a Update patch fluff. md_5 2013-01-19 19:22:25 +1100
  • 22bb4da32a Sync free, but still safe reference cache for chunk loading. md_5 2013-01-19 19:22:07 +1100
  • cfd861ca46 Skip entity move if we aren't moving anywhere (aikar) md_5 2013-01-19 19:20:35 +1100
  • eec3b8f8a5 Add cleanup Patches function to not modify patches with no changes Aikar 2013-01-16 12:08:09 -0500
  • 525b95da85 Don't build if patches fail to apply. md_5 2013-01-19 19:18:20 +1100
  • c45ba0bcd8 Add experimental patch to unload chunks more efficiently from the client by not grabbing them and compressing, instead just sending some predefined bytes md_5 2013-01-18 22:27:42 +1100
  • c63672c098 Automatically update upstream versions. Bukkit-1.4.7-R0.1-1-g91d9b24, CraftBukkit-1.4.7-R0.1-4-g8fc463b EcoCityCraft 2013-01-18 04:15:49 -0600
  • 48f3195237 Phew. I think that is 1.4.7 done md_5 2013-01-18 09:27:26 +1100