It appears that there's no timeout for the "connect" function. If you try to connect to a serial port that exists but is not actually connected to a vehicle, it just hangs.
On the RasPi, I'm conecting to the Pixhawk via USB, so it's /dev/ttyACM0. The RasPi has a built in serial port at ttyAMA0. If you "Connect('/dev/ttyAM0')" it hangs, presumably because it's a valid port so it thinks it can read, but never gets valid data.
It appears that there's no timeout for the "connect" function. If you try to connect to a serial port that exists but is not actually connected to a vehicle, it just hangs.
On the RasPi, I'm conecting to the Pixhawk via USB, so it's /dev/ttyACM0. The RasPi has a built in serial port at ttyAMA0. If you "Connect('/dev/ttyAM0')" it hangs, presumably because it's a valid port so it thinks it can read, but never gets valid data.