igniterealtime/Openfire — pull request #101 by DanielMaier-BSI (2014-11-12 15:43:34+00:00)
Title: OF-565 ConnectionHandler has parsing problems due to use of hashcode under heavy load.

Use ThreadLocal instead of Map (with Thread's hashcode() as key) to cache XMPPPacketReader per Thread. The solution with the Map does lead to collisions under heavy load.

See for example http://www.javaspecialists.eu/archive/Issue222.html for probability of same hashcode of different objects.