[Live-devel] openRTSP (connect failed timeout)

Alex V. Obshtat mralex at mralex.kiev.ua
Thu Oct 15 02:25:10 PDT 2009


Thanks a lot. 
I've changed source with next:
  
if (username != NULL && password != NULL) {
    result = rtspClient->describeWithPassword(url, username, password,
False, 10);
  } else {
    result = rtspClient->describeURL(url, NULL, False, 10);
  }

And now I have 1:24 before exiting instead of 2:28 but this is not enough
for me. 
By the way also error message had changed too (select appeared):

time /usr/local/bin/openRTSP -D 5 -b 50000 -i -d 10 -w 640 -h 480 -f 25
rtsp://10.255.101.49:7070 > file4.mp4
Failed to get a SDP description from URL "rtsp://10.255.101.49:7070":
select/connect() failed: Operation now in progress
0.000u 0.002s 1:24.25 0.0%      0+0k 0+0io 5pf+0w

Where can I make more changes to get less timeout?

--
  WBR, mrAlex
________________________________________
From: live-devel-bounces at ns.live555.com
[mailto:live-devel-bounces at ns.live555.com] On Behalf Of Ross Finlayson
Sent: Thursday, October 15, 2009 9:48 AM
To: LIVE555 Streaming Media - development & use
Subject: Re: [Live-devel] openRTSP (connect failed timeout)

But I have one question  - is it possible to decrease timeout before exiting
if  host specified in url is unreachable ?

Yes, you can add a "timeout" parameter (in seconds) to the call to
"RTSPClient::describeURL()" and/or "RTSPClient::describeWithPassword()".

There's no option in the "openRTSP" code to do this; instead, you could
'hard wire' a timeout parameter into the call to "describeURL()" and/ior
"describeWithPassword()" in "testProgs/openRTSP.cpp".
-- 

Ross Finlayson
Live Networks, Inc.
http://www.live555.com/



More information about the live-devel mailing list