xen-org/xen-api — pull request #990 by jeromemaloberti (2013-01-29 17:56:19+00:00)
Title: CA-97883: Wrap the fstat call in an exception handler

TAMPA-LCM.

We can get an exception when we're fstatting a file that's larger
than is representable in a signed 32-bit integer (ie., 2 gigs).
If this happens, it's clearly not a socket, so don't bother setting
the TCP timeout parameters.

This patch is actually a bit more defensive, and ignores any
exception thrown here.

Signed-off-by: Jon Ludlam