There has been a known issue with 1.3.1 and 1.3.2 when connecting to MP servers. That also includes getting the pings for servers, which could take minutes just for them all to get connection.
When a server was trying to be logged into, the user may have to wait up to 15-30 seconds while the game client was frozen for them to be let in.
The explanation for this was because of minecraft trying to use java files that may not be in every "active" version of java. Without checking if the class existed in their version of java, minecraft attempted to get attributes of the class. Java's reaction was to wait for it's time out of around 15-30 seconds until throwing an error, which minecraft recognized and dealt with properly.
The solution was pretty simple, knowing the problem. Check if the class files exist before attempting anything else. I guess you could consider it a "null check" (the concept, not the actuality). With this change, I use the Class#forName to check if it exists, in which it will throw an error if it doesn't. If caught, the error will let the method know that the class doesn't exist and not to try anything else.
Below is a file to replace in minecraft.jar. This will require the deletion of the META-INF from the jar. If you need further instructions on how to place the file in, look up a tutorial on how to install mods.
A) Take these steps in order:
1. Download the class file for the corresponding version of minecraft.
2. Open the Minecraft.jar in an archiving program (WinRAR, WinZip, 7Zip, etc.)
3. Delete the META-INF folder (this is crucial, if this isn't done Minecraft will crash on start-up)
4. Drag the class file into the archive, if prompted for permission to override, click yes.
5. Start up Minecraft.
Ever since 1.3.1 when trying to join servers with the default port (:25565) it would freeze for half a minute then connect to the server, but this has fixed it, it doesn't freeze anymore!
For all those that it isn't working for, make sure you're deleting the META-INF or minecraft WILL crash on you. Also, make sure you're using the right version of the fix for the right version of minecraft. Aside from that, I don't know why it wouldn't work.