b7ffd83675Add proper thread safety. Please let me know if this deadlocks your server.
md_5
2013-02-10 18:35:09 +1100
36f3a7a7f2If 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
cb11c55f81Add volatile to be sure the JVM wont cache the value
md_5
2013-02-10 15:12:35 +1100
4b4eea9e4bFix occasionally showing as 1.3
md_5
2013-02-10 15:04:27 +1100
d2bb5e9ad6Reduce legacy ping threshold to 1000ms
md_5
2013-02-10 14:35:13 +1100
7a9eda4b61Fix legacy pinging with some uber ninja coding.
md_5
2013-02-10 14:26:59 +1100
4542cc4a23Fix support for windows xp / server 2003
md_5
2013-02-10 12:35:52 +1100
b3e5c97f6bIt came to me in a dream - literally. This should fix all known issues.
md_5
2013-02-10 11:54:49 +1100
60cb2f461bTweak to thread pool and safety.
md_5
2013-02-10 10:30:58 +1100
86bb33ece7Clearing the queue when they are disconnected might actually fix some issues.
md_5
2013-02-10 09:33:31 +1100
ff911e1872Add 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
3e21bba4eeRemove debug code now that we know it can be called.
md_5
2013-02-09 22:54:14 +1100
0dd0ebb15fRun disconnect code on the main thread.
md_5
2013-02-09 21:55:33 +1100
9bca4e4b70Add debug to see if statement is ever true
md_5
2013-02-09 21:28:34 +1100
5e80c9de0bGive a pot shot at bringing network logic a bit closer to CB/Vanilla
md_5
2013-02-09 21:05:34 +1100
3302eedef5Small cleanup to netty code, no functional changes.
md_5
2013-02-09 20:58:03 +1100
a2ffb31ddbDon't scare users with debug mode.
md_5
2013-02-09 20:42:08 +1100
41579ff315Add debug logging + more cleanup
md_5
2013-02-09 20:27:25 +1100
f4572d5786Nullcheck channel just in case, only null channel on disconnect.
md_5
2013-02-09 20:16:23 +1100
56d3bd5f39Use a synced arraylist
md_5
2013-02-09 20:10:34 +1100
d212863aa7Implement 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
ed84749d6eSplit TPS patch out correctly.
md_5
2013-02-08 17:09:51 +1100
a1e8ebf5b9Please people, report to Spigot, not me
md_5
2013-02-07 20:23:31 +1100
9a4bc05358Send 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
72acec7f20Move tick loop changes to own patch with a few optimizations.
md_5
2013-02-03 12:28:39 +1100
7b4bba6b3bActually use the parent pom.
md_5
2013-02-03 09:54:16 +1100
5853e18f40Just use the parent pom.
md_5
2013-02-03 09:48:23 +1100
277b59e4b9Update POM changes to individual patches.
md_5
2013-02-03 09:38:54 +1100
841693a0c0Detect, 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
7d858839a7Send maps, just a lot less often.
md_5
2013-02-02 19:41:11 +1100
5efea6f794Only nag if we are finding for the first time..
md_5
2013-02-02 18:11:59 +1100
b8994aff61Abuse plugins which embed metrics in the default location.
md_5
2013-02-02 16:41:52 +1100
37dc2fc1c4Plugins 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
87ac58c259Another attempt at 'fixing' the mob spawn issues present in CraftBukkit.
md_5
2013-02-02 09:02:14 +1100
cd35b5e5b0Update to CraftBukkit 1.4.7-R1
md_5
2013-01-31 16:56:47 +1100
a65fedb3f8Mob 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
0c9154899bMake 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
059fcbc8bdQuick fix for oreobf crash, @lishid
md_5
2013-01-24 09:13:53 +1100
38a24558c2Disable the ability to disable chunk-gc
Aikar
2013-01-21 22:53:50 -0500
7cdf470eabMove Spigot config initialization code into its own class, and use it for /reload.
Aikar
2013-01-21 21:46:53 -0500
41b7c5f465Update rebuildPatches to ignore git version string.
Aikar
2013-01-21 21:46:26 -0500
17af62c898Reduce number of collision checks for living entities.
md_5
2013-01-22 10:04:57 +1100
205b31cfa2Add @EddGruberman's patch to fix nether portals when the nether is disabled.
md_5
2013-01-22 09:58:57 +1100
43dc376b03Check if chunk is loading before obfuscating.
md_5
2013-01-22 09:57:22 +1100
f440cb30edSwitch to pwd so the scripts can work more reliably on other OSs
md_5
2013-01-21 20:24:30 +1100
7dcc1ceac4Notify all adjacent blocks, thanks Aikar
md_5
2013-01-21 17:51:34 +1100
c22ab4c897Fix obfuscator being a little too effective.
md_5
2013-01-21 17:38:13 +1100
3d4920ebd6Add 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
22bb4da32aSync free, but still safe reference cache for chunk loading.
md_5
2013-01-19 19:22:07 +1100
cfd861ca46Skip entity move if we aren't moving anywhere (aikar)
md_5
2013-01-19 19:20:35 +1100
eec3b8f8a5Add cleanup Patches function to not modify patches with no changes
Aikar
2013-01-16 12:08:09 -0500
525b95da85Don't build if patches fail to apply.
md_5
2013-01-19 19:18:20 +1100
c45ba0bcd8Add 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