Re: Euphoria Web Server

new topic     » goto parent     » topic index » view thread      » older message » newer message

----- Original Message -----
From: "Pete Eberlein" <xseal at HARBORSIDE.COM>
To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
Sent: Saturday, February 19, 2000 4:27 PM
Subject: Re: Euphoria Web Server


> Well, someone successfully crashed it... due to a limitation of Euphoria.
> Here's a snippet of ex.err that shows how they did it:
>
> webserver.exu:152 in procedure GET_Request()
> file name for open() is too long
>     filename = {106'j',106'j',104'h',107'k',104'h',106'j',107'k',104'h',
> 106'j',107'k',106'j',107'k',104'h',106'j',107'k',106'j',104'h',107'k',
> 104'h',106'j',107'k',104'h',106'j',107'k',106'j',107'k',104'h',106'j',
> 107'k',106'j',104'h',107'k',104'h',106'j',107'k',104'h',106'j',107'k',
> 106'j',107'k',104'h',106'j',107'k',106'j',104'h',107'k',104'h',106'j',
> 107'k',104'h',106'j',107'k',106'j',107'k',104'h',106'j',107'k',106'j',
> 104'h',107'k',104'h',106'j',107'k',104'h',106'j',107'k',106'j',107'k',
> 104'h',106'j',107'k',106'j',104'h',107'k',104'h',106'j',107'k',104'h',
> 106'j',107'k',106'j',107'k',104'h',106'j',107'k',106'j',104'h',107'k',
> 104'h',106'j',107'k',104'h',106'j',107'k',106'j',107'k',104'h',106'j',
>
> So Rob, what *is* the maximum length filename that open can handle?  And
why
> does it dump ex.err instead of simply returning -1?
>
> And... who was the genius who pounded their home row keys to make this
> happen? blink
>
> Maybe I should write some logging routines...

You should anyways, to enable flood control. Read the header the browser
sends, and if you get a req for a file that you are already sending to that
ip (or even that isp), close the connection and set a flood timer.

Here is a log of my server, thru a proxy, via localhost, using IE5.01:

-----
Connecting ip: 127.0.0.1
Time: 02/19/00 6:18:07pm
GET /Kb/Astronomy/NewsHour%20Online%20Life%20on%20other%20planets.htm
HTTP/1.0
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
Accept-Language: en-us
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows 95) WebWasher/1.2.2
Connection: Close
My ip: localhost
-----
.. 02/19/00 6:18:07pm Done sending "e:\Kb\Astronomy\NewsHour Online Life on
other planets.htm" : 11,592 bytes. ..
.. Transmission time: 0.054 sec. Speed: 214,666 bytes/sec. ..
-----
Connecting ip: 127.0.0.1
Time: 02/19/00 6:18:08pm
GET /newshour/images/hb_back_briefings.gif HTTP/1.0
Accept: */*
Accept-Language: en-us
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows 95) WebWasher/1.2.2
Connection: Close
My ip: localhost
-----
File "e:\newshour\images\hb_back_briefings.gif" Not Found
-----

Then a slew of the fancy button and people.gifs that i didn't save weren't
found, which is ok too, but you'll find that gitting hit with 7 legitimate
requests for big .gif files in one second takes some code to keep straight.

Kat

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu