Trades and duel stakes are checked at every step, so items can't be copied or lost in them any more, and the game turns away connections that only get in the way of players.
The game turns away a connection that hasn't logged in after 15 seconds, and too many new connections from one place in a short time, so they can't crowd out players logging in. Logging in, changing worlds and reconnecting are never affected.
A game that sends the server broken or far too many messages is disconnected, instead of slowing the world down for everyone.
Hotfixes
Trading
Several ways items could be copied or lost in a trade are fixed: a trade only ever happens between two players who both have it open with each other, and nothing can be added once the second screen is up.
If one of you wouldn't have room for what you'd get (no free space, or a stack bigger than a stack can hold), the trade doesn't go through and you're both told, instead of the items being lost.
Taking an item back off the trade screen with a full pack leaves it on offer, instead of losing it.
Dying while trading declines the trade, and everyone gets their items back.
Duel Arena
Several ways stakes could be copied or lost are fixed: the stake can only change on the first screen, what you stake always comes out of your pack, and the loser's stake is the winner's alone.
Challenging someone while a duel's on no longer clears your stake, or the winnings you haven't collected yet.
You can't trade during a duel, or start a duel while trading.