Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread TServerRequest - OnTimeout: TServerRequestEvent never called
Mon, Sep 5 2022 1:36 AMPermanent Link

littleearth

Little Earth Solutions

Avatar

Hi,

I cannot see that TServerRequest OnTimeout is ever called; and you just end with an OnComplete and 0 a status.

Looking at the code in webHTTP I do not see that TimeoutHandler or ErrorHandler are ever assigned or called.

I am fine with it not working; just wondering if it serves a purpose? Future release?

Tristan
Tristan
https://www.littleearthsolutions.net/
Mon, Sep 5 2022 3:13 PMPermanent Link

erickengelke

littleearth wrote:
> I cannot see that TServerRequest OnTimeout is ever called; and you just end with an OnComplete and 0 a status.

Hi, I never thought about that.  And in fact, I like that It returns to the same handler as it's less coding to handy every situation.  Either it works or it fails, no need for a second handler of failures.

On another note, I looked at your web site because I loved your logo for whole earth.. am I shallow or what?  Cool stuff.   It could be a game changer for EWB if there were an OAuth2 module for it.   

Erick
EWB Programming Books and Component Library
http://www.erickengelke.com
Tue, Sep 6 2022 8:22 AMPermanent Link

Ralf Mimoun

Source code sayx that the timeout seems to be unused in TXMLHttpRequest (unit WebDOM). Strange.

Ralf

littleearth wrote:

Hi,

I cannot see that TServerRequest OnTimeout is ever called; and you just end with an OnComplete and 0 a status.

Looking at the code in webHTTP I do not see that TimeoutHandler or ErrorHandler are ever assigned or called.

I am fine with it not working; just wondering if it serves a purpose? Future release?

Tristan
Tristan
https://www.littleearthsolutions.net/
Image