Re: Assert in IdCustomHTTPServer line 768

Giganews Newsgroups
Subject: Re: Assert in IdCustomHTTPServer line 768
Posted by:  Remy Lebeau \(TeamB\) (no.spam@no.spam.com)
Date: Tue, 22 Apr 2008

"Thomas Bergerot" <nospam@nospam.fr> wrote in message
news:363042270F51E340nospam@nospam.fr...

> However, i get quite often an Assert failed exception in
> IdCustomHTTPServer line 768.
>
> What is the purpose of this assert ?

To make sure the client actually begins sending a new request before the
timeout expires.  Unlike other reading methods, ReadLn() does not throw its
own exception on timeout, hense the existence of the separate ReadLnTimedOut
property.  In earlier releases, TIdCustomHTTPServer would crash if ReadLn()
timed out since there was no data to process, so the assert was added to
avoid that.

Gambit

Replies

None

In response to

Assert in IdCustomHTTPServer line 768 posted by Thomas Bergerot on Tue, 22 Apr 2008