Autor Beitrag
Thomas233
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 39

Win 2000, Win Xp
Delphi 6 Personal
BeitragVerfasst: Mi 04.08.04 18:29 
Hallo,

ich habe ein ganz simples Problem mit dem Http-Client von Indy 9 bei dem ihr mir hoffentlich helfen könnt.

Und zwar habe ich in meinem Programm einen Datei-Download eingebaut der mit dem Http-Client von Indy realisiert wurde.

Da aber der Server von dem ich die Datei herunterlade etwas langsamer ist wird beim Download des öfteren eine Überschreitung des Zeitlimits beim Verbinden (Timeout) hervorgerufen.

Wenn ich versuche dieses Zeitlimit durch "Http.Timeout=x" selbst zu bestimmen (und zu verlängern) dann hat dies keine Wirkung.

Gibt es eine andere Möglichkeit das Timeout selbst einzustellen?

ausblenden Quelltext
1:
2:
3:
4:
 Http.Timeout:=100000;
 contStream:=TFileStream.Create(MyDownloadedFiles+'\'+Url2File(durl),fmCreate);
 Http.Get(durl,contStream);
 contStream.Free;


Vielen Dank im Vorraus für eure Hilfe.

Euer Thomas!
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Mi 04.08.04 20:12 
ganz einfach durch die eigenschaft readtimeout

_________________
In the beginning was the word.
And the word was content-type: text/plain.
Thomas233 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 39

Win 2000, Win Xp
Delphi 6 Personal
BeitragVerfasst: Do 05.08.04 20:34 
Hi,

scheint zu funktionieren!

Danke für die Antwort.

_________________
Mit freundlichen Grüßen
Thomas233