C caillaud Member Licensed User Longtime User Mar 19, 2012 #1 Hi is it possible to modify the time out (increase it because the net is very busy and slow) thanks in advance michel
Hi is it possible to modify the time out (increase it because the net is very busy and slow) thanks in advance michel
Erel B4X founder Staff member Licensed User Longtime User Mar 20, 2012 #2 Yes. The request is created in HttpUtilsService.ProcessNextTask. You can add the timeout there: Code: Copy If Post Then If PostInputStream.IsInitialized Then req.InitializePost(link, PostInputStream, PostLength) Else req.InitializePost2(link, PostBytes) End If Else req.InitializeGet(link) End If req.Timeout = 60000 '<-- new line Upvote 0
Yes. The request is created in HttpUtilsService.ProcessNextTask. You can add the timeout there: Code: Copy If Post Then If PostInputStream.IsInitialized Then req.InitializePost(link, PostInputStream, PostLength) Else req.InitializePost2(link, PostBytes) End If Else req.InitializeGet(link) End If req.Timeout = 60000 '<-- new line
C caillaud Member Licensed User Longtime User Mar 21, 2012 #3 httputils Hi thanks very much I understand that 60000 means 6 seconds sincerely michel Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Mar 21, 2012 #4 The timeout is measured in milliseconds. 60000 means 60 seconds. Upvote 0
C caillaud Member Licensed User Longtime User Mar 21, 2012 #5 httputils Hi thanks a lot sincerely michel Upvote 0