1. Euphoria Web Server

Please try out my web server at:

http://216.36.8.170:8080/

It's written completely in Euphoria (Linux) and you can download the source
code from the main page.  If there are no serious bugs, ie. none of you are
able to crash it by this evening, I'll send a copy off to Rob.

Pete

new topic     » topic index » view message » categorize

2. Re: Euphoria Web Server

Pete:
No way to contact it!...
Jesús.

> -----Mensaje original-----
> De: Euphoria Programming for MS-DOS
> [mailto:EUPHORIA at LISTSERV.MUOHIO.EDU]En nombre de Pete Eberlein
> Enviado el: sábado 19 de febrero de 2000 21:22
> Para: EUPHORIA at LISTSERV.MUOHIO.EDU
> Asunto: Euphoria Web Server
>
>
> Please try out my web server at:
>
> http://216.36.8.170:8080/
>
> It's written completely in Euphoria (Linux) and you can download
> the source
> code from the main page.  If there are no serious bugs, ie. none
> of you are
> able to crash it by this evening, I'll send a copy off to Rob.
>
> Pete
>

new topic     » goto parent     » topic index » view message » categorize

3. Re: Euphoria Web Server

Jes=FAs:

Which browser are you using?
Try it again.  It was down very briefly while I changed one of the procedure=

names.

Pete


On Sat, 19 Feb 2000 22:29:04 +0100, JesusC <jesus.consuegra at RETEMAIL.ES>
wrote:

>Pete:
>No way to contact it!...
>Jes=FAs.
>
>> -----Mensaje original-----
>> De: Euphoria Programming for MS-DOS
>> [mailto:EUPHORIA at LISTSERV.MUOHIO.EDU]En nombre de Pete Eberlein
>> Enviado el: s=E1bado 19 de febrero de 2000 21:22
>> Para: EUPHORIA at LISTSERV.MUOHIO.EDU
>> Asunto: Euphoria Web Server
>>
>>
>> Please try out my web server at:
>>
>> http://216.36.8.170:8080/
>>
>> It's written completely in Euphoria (Linux) and you can download
>> the source
>> code from the main page.  If there are no serious bugs, ie. none
>> of you are
>> able to crash it by this evening, I'll send a copy off to Rob.
>>
>> Pete
>>

new topic     » goto parent     » topic index » view message » categorize

4. Re: Euphoria Web Server

I tried it and it seems to work fine. There was a nice little graphic and
then a link to a page of the code.

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


> Jesús:
>
> Which browser are you using?
> Try it again.  It was down very briefly while I changed one of the
procedure
> names.
>
> Pete
>
>
> On Sat, 19 Feb 2000 22:29:04 +0100, JesusC <jesus.consuegra at RETEMAIL.ES>
> wrote:
>
> >Pete:
> >No way to contact it!...
> >Jesús.
> >
> >> -----Mensaje original-----
> >> De: Euphoria Programming for MS-DOS
> >> [mailto:EUPHORIA at LISTSERV.MUOHIO.EDU]En nombre de Pete Eberlein
> >> Enviado el: sábado 19 de febrero de 2000 21:22
> >> Para: EUPHORIA at LISTSERV.MUOHIO.EDU
> >> Asunto: Euphoria Web Server
> >>
> >>
> >> Please try out my web server at:
> >>
> >> http://216.36.8.170:8080/
> >>
> >> It's written completely in Euphoria (Linux) and you can download
> >> the source
> >> code from the main page.  If there are no serious bugs, ie. none
> >> of you are
> >> able to crash it by this evening, I'll send a copy off to Rob.
> >>
> >> Pete
> >>
>

new topic     » goto parent     » topic index » view message » categorize

5. 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',

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...

Pete

new topic     » goto parent     » topic index » view message » categorize

6. Re: Euphoria Web Server

I was able to contact it, looks nice.

Pete, have you tried serving a large page with a lot of pics from different
directories yet?

Kat

----- Original Message -----
From: "JesusC" <jesus.consuegra at RETEMAIL.ES>
To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
Sent: Saturday, February 19, 2000 3:29 PM
Subject: Re: Euphoria Web Server


> Pete:
> No way to contact it!...
> Jesús.
>
> > -----Mensaje original-----
> > De: Euphoria Programming for MS-DOS
> > [mailto:EUPHORIA at LISTSERV.MUOHIO.EDU]En nombre de Pete Eberlein
> > Enviado el: sábado 19 de febrero de 2000 21:22
> > Para: EUPHORIA at LISTSERV.MUOHIO.EDU
> > Asunto: Euphoria Web Server
> >
> >
> > Please try out my web server at:
> >
> > http://216.36.8.170:8080/
> >
> > It's written completely in Euphoria (Linux) and you can download
> > the source
> > code from the main page.  If there are no serious bugs, ie. none
> > of you are
> > able to crash it by this evening, I'll send a copy off to Rob.
> >
> > Pete
> >
>

new topic     » goto parent     » topic index » view message » categorize

7. Re: Euphoria Web Server

----- 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 message » categorize

8. Re: Euphoria Web Server

Pete Eberlein wrote:

>Please try out my web server at:
>
>http://216.36.8.170:8080/
>
>It's written completely in Euphoria (Linux) and you can download the source
>code from the main page.  If there are no serious bugs, ie. none of you are
>able to crash it by this evening, I'll send a copy off to Rob.
>
>Pete

Works like a champ for me under Opera 3.62 under Win98SE.

Everett L.(Rett) Williams
rett at gvtc.com

new topic     » goto parent     » topic index » view message » categorize

9. Re: Euphoria Web Server

Pete Eberlein writes:

> webserver.exu:152 in procedure GET_Request()
> file name for open() is too long
> ...
> So Rob, what *is* the maximum length filename that
> open can handle?

The limit is 255 characters.
That was carried over from WIN32+DOS32.
Perhaps it should be set higher on Linux.

> And why does it dump ex.err instead
> of simply returning -1?

I guess it would be better to return -1 in this (rare)
situation. Then you could naturally treat it as a failure to
open the file, which makes sense. I'll make the change
for the next release.

By the way, your Web server worked fine for me.
I look forward to receiving your code for the
Recent User Contributions page.

Regards,
   Rob Craig
   Rapid Deployment Software
   http://www.RapidEuphoria.com

new topic     » goto parent     » topic index » view message » categorize

10. Re: Euphoria Web Server

When i telnet to your server on port 8080 and run the basic HTTP command:

GET / HTTP/1.0
and hit enter twice,

nothing happens,
Usually done on a web server, HTTP headers, etc. are displayed
Whats goin on?

CenSe,
a member of the
ak-software
development team

http://ak-software.virtualave.net/

new topic     » goto parent     » topic index » view message » categorize

11. Re: Euphoria Web Server

Pete Eberlein wrote:

>  Well, someone successfully crashed it... due to a limitation of Euphoria.
>
>  And... who was the genius who pounded their home row keys to make this
>  happen? blink
>
>  Maybe I should write some logging routines...
>

'twas me.  A lot of servers fall victim to this incredibly simple 'trick'.
Early versions of Microsoft's Personal Web Server would actually cause boxes to
freeze up with requests for files were made, that had a length of 1000 bytes or
greater.  Apache once had this problem too, I believe.

And, for what it's worth, I crashed my own machine, too.  Turns out Netscape
doesn't like serveral thousand characters in the Location box =P

Regards,
Greg


--

if x = DaysInAMonth then
  x * 294506 + x = ICQ

remove "SPAMLESS" to email me.

"It's sad that entire families can be ripped apart by something so simple as a
pack of wild wolves."

new topic     » goto parent     » topic index » view message » categorize

12. Re: Euphoria Web Server

On Sat, 19 Feb 2000, you wrote:
> Please try out my web server at:
>
> http://216.36.8.170:8080/
>
> It's written completely in Euphoria (Linux) and you can download the source
> code from the main page.  If there are no serious bugs, ie. none of you are
> able to crash it by this evening, I'll send a copy off to Rob.

Pete!

This works great, and it's small enough to be understood and modified.
As far as I can see, it serves as fast as any others, at least, the blue
line on kppp statistics hits the limit for my modem while
downloading the large doc files, and stays there without dips or dropouts.

Many thanks.

Irv

new topic     » goto parent     » topic index » view message » categorize

13. Re: Euphoria Web Server

On Sat, 19 Feb 2000, you wrote:
> Please try out my web server at:
>
> http://216.36.8.170:8080/
>
> It's written completely in Euphoria (Linux) and you can download the source
> code from the main page.

Say, Pete:

Since this still retains (from RDC.e) the ability to export selected routines
for the client to call, do we not have a webserver that,
when called by a Euphoria client, could have some very interesting
possibilities?

Regards,
Irv

new topic     » goto parent     » topic index » view message » categorize

14. Re: Euphoria Web Server

Looks great !

  Now if you can install a T1 line and write a listserver in Euphoria

  and then we could have our own private internet with free isp

  services.

Bernie

new topic     » goto parent     » topic index » view message » categorize

15. Re: Euphoria Web Server

Pete,
     I know that you know this already, but it wasn't me that crashed it blink
It really loads pages fast, my girlfriend was looking over my shoulder (who
hates me spending any of my time programming)  SHE was even impressed (not
an easy task sometimes) but when she see's a real world application...

    As to Bernie...I think that a novel addition to that request would be
for Rob to buy a South Pacific Atoll, complete with old military base and
airfield (to land our Lear Jets on), to install the T1 at, so we can run
fiberoptics out to our huts by the beach.
     The other day at the phone company, my brother handed me a little box,
and said..."There Monty, thats the closest you'll ever get to a T1 modem", I
am hoping to prove him wrong someday :)
Monty


-----Original Message-----
From: Bernie Ryan <LockCityData at CS.COM>
To: EUPHORIA at LISTSERV.MUOHIO.EDU <EUPHORIA at LISTSERV.MUOHIO.EDU>
Date: Sunday, February 20, 2000 6:53 AM
Subject: Re: Euphoria Web Server


>Looks great !
>
>  Now if you can install a T1 line and write a listserver in Euphoria
>
>  and then we could have our own private internet with free isp
>
>  services.
>
>Bernie

new topic     » goto parent     » topic index » view message » categorize

16. Re: Euphoria Web Server

----- Original Message -----
From: "M King" <boot_me at GEOCITIES.COM>
To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
Sent: Sunday, February 20, 2000 10:22 AM
Subject: Re: Euphoria Web Server


> Pete,
>      I know that you know this already, but it wasn't me that crashed it
blink
> It really loads pages fast, my girlfriend was looking over my shoulder
(who
> hates me spending any of my time programming)  SHE was even impressed (not
> an easy task sometimes) but when she see's a real world application...
>
>     As to Bernie...I think that a novel addition to that request would be
> for Rob to buy a South Pacific Atoll, complete with old military base and
> airfield (to land our Lear Jets on), to install the T1 at, so we can run
> fiberoptics out to our huts by the beach.

Wouldn't work better to have the OC3 run to the atoll, and the T1's run the
the mansions?

Kat

new topic     » goto parent     » topic index » view message » categorize

17. Re: Euphoria Web Server

Great!...
Now it does work!.
(Incidentally, I use Opera 3.62beta). Sure I hit the page when it was down.
Have you got a  permanent link to Internet?.
Someone told me that it's common in the US.
Here in Spain is too expensive yet.
Jesús.
>
> Which browser are you using?
> Try it again.  It was down very briefly while I changed one of
> the procedure
> names.

new topic     » goto parent     » topic index » view message » categorize

18. Re: Euphoria Web Server

Kat wrote:

>----- Original Message -----
 "M King"
>
>> Pete,
>>      I know that you know this already, but it wasn't me that crashed it
>blink
>> It really loads pages fast, my girlfriend was looking over my shoulder
>(who
>> hates me spending any of my time programming)  SHE was even impressed (not
>> an easy task sometimes) but when she see's a real world application...
>>
>>     As to Bernie...I think that a novel addition to that request would be
>> for Rob to buy a South Pacific Atoll, complete with old military base and
>> airfield (to land our Lear Jets on), to install the T1 at, so we can run
>> fiberoptics out to our huts by the beach.
>
>Wouldn't work better to have the OC3 run to the atoll, and the T1's run the
>the mansions?
>
>Kat

Thats a T3 Kat, OC's come in multiples of 12...but I'll take any of the above
if anybody is playing Santa Claus.

Everett L.(Rett) Williams
rett at gvtc.com

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu