add socket timeout to carbon connect() call