This way the API for interacting directly with the socket object is consistent before and after the Agent pool is exhausted. Fixes #1601.
BUG=v8:1642 Review URL: http://codereview.chromium.org/7781007 This is a back-port of upstream r9043. Fixes build on OS X 10.5.
…Windows Server 2003. Fixes #1592.
An overloaded toString() method may have side effects so don't call it for a simple type check. Back-port of 54b409d to the v0.4 branch.