For some unknown reason the timeout parameter is being treated as a signed integer on conversion.