Re: HTTP server benchmarking/load testing in Python

2023-01-26 Thread Thomas Passin
On 1/26/2023 6:39 PM, Barry wrote: On 26 Jan 2023, at 17:32, Thomas Passin wrote: On 1/26/2023 11:41 AM, Chris Angelico wrote: On Fri, 27 Jan 2023 at 03:34, Thomas Passin wrote: A nice theory but nothing to do with the real world. I've had a number of laptops that overheat (or would, if

Re: HTTP server benchmarking/load testing in Python

2023-01-26 Thread Thomas Passin
On 1/26/2023 10:32 PM, Chris Angelico wrote: On Fri, 27 Jan 2023 at 14:21, Thomas Passin wrote: 2. "What is Tjunction max temperature?" Tjunction max is the maximum thermal junction temperature that a processor will allow prior to using internal thermal control mechanisms to reduce power and li

Re: HTTP server benchmarking/load testing in Python

2023-01-26 Thread Chris Angelico
On Fri, 27 Jan 2023 at 14:21, Thomas Passin wrote: > 2. "What is Tjunction max temperature?" > Tjunction max is the maximum thermal junction temperature that a > processor will allow prior to using internal thermal control mechanisms > to reduce power and limit temperature. Activation of the proce

Re: HTTP server benchmarking/load testing in Python

2023-01-26 Thread Thomas Passin
On 1/26/2023 5:00 PM, Chris Angelico wrote: On Fri, 27 Jan 2023 at 06:54, Thomas Passin wrote: Did you get a warning, or did you just decide to stop the test? (At least) one of the utilities, I forget which one, did show the temperature in a danger zone. I'm very curious as to which utility

Re: HTTP server benchmarking/load testing in Python

2023-01-26 Thread Barry
> On 26 Jan 2023, at 17:32, Thomas Passin wrote: > > On 1/26/2023 11:41 AM, Chris Angelico wrote: >>> On Fri, 27 Jan 2023 at 03:34, Thomas Passin wrote: >>> A nice theory but nothing to do with the real world. I've had a number >>> of laptops that overheat (or would, if I let test program co

Re: HTTP server benchmarking/load testing in Python

2023-01-26 Thread Chris Angelico
On Fri, 27 Jan 2023 at 06:54, Thomas Passin wrote: > > Did you get a warning, or did you just decide to stop the test? > > (At least) one of the utilities, I forget which one, did show the > temperature in a danger zone. I'm very curious as to which utility, and on what basis it called it "danger

Re: HTTP server benchmarking/load testing in Python

2023-01-26 Thread Thomas Passin
On 1/26/2023 12:57 PM, Chris Angelico wrote: On Fri, 27 Jan 2023 at 04:31, Thomas Passin wrote: On 1/26/2023 11:41 AM, Chris Angelico wrote: On Fri, 27 Jan 2023 at 03:34, Thomas Passin wrote: A nice theory but nothing to do with the real world. I've had a number of laptops that overheat (o

Re: HTTP server benchmarking/load testing in Python

2023-01-26 Thread Chris Angelico
On Fri, 27 Jan 2023 at 04:31, Thomas Passin wrote: > > On 1/26/2023 11:41 AM, Chris Angelico wrote: > > On Fri, 27 Jan 2023 at 03:34, Thomas Passin wrote: > >> A nice theory but nothing to do with the real world. I've had a number > >> of laptops that overheat (or would, if I let test program co

Re: HTTP server benchmarking/load testing in Python

2023-01-26 Thread Thomas Passin
On 1/26/2023 11:41 AM, Chris Angelico wrote: On Fri, 27 Jan 2023 at 03:34, Thomas Passin wrote: A nice theory but nothing to do with the real world. I've had a number of laptops that overheat (or would, if I let test program continue) running this test program. Define "overheat". If all you'

Re: HTTP server benchmarking/load testing in Python

2023-01-26 Thread Grant Edwards
On 2023-01-26, Thomas Passin wrote: > On 1/26/2023 11:02 AM, Grant Edwards wrote: > >[...] > >> A properly designed laptop with a non-broken OS will not overheat >> regardless of the computing load you throw at it. The fan might get >> annoying loud, but if it overheats either your hardware or OS

Re: HTTP server benchmarking/load testing in Python

2023-01-26 Thread Chris Angelico
On Fri, 27 Jan 2023 at 03:34, Thomas Passin wrote: > A nice theory but nothing to do with the real world. I've had a number > of laptops that overheat (or would, if I let test program continue) > running this test program. Define "overheat". If all you're saying is "the fan began to whine and I

Re: HTTP server benchmarking/load testing in Python

2023-01-26 Thread Thomas Passin
On 1/26/2023 11:02 AM, Grant Edwards wrote: On 2023-01-26, Thomas Passin wrote: On 1/25/2023 7:38 PM, Peter J. Holzer wrote: On 2023-01-25 16:30:56 -0500, Thomas Passin wrote: Great! Don't forget what I said about potential overheating if you hit the server with as many requests as it can ha

Re: HTTP server benchmarking/load testing in Python

2023-01-26 Thread Dino
On 1/25/2023 4:30 PM, Thomas Passin wrote: On 1/25/2023 3:29 PM, Dino wrote: Great!  Don't forget what I said about potential overheating if you hit the server with as many requests as it can handle. Noted. Thank you. -- https://mail.python.org/mailman/listinfo/python-list

Re: HTTP server benchmarking/load testing in Python

2023-01-26 Thread Benjamin Schollnick
> On Jan 26, 2023, at 11:02 AM, Grant Edwards wrote: > > On 2023-01-26, Thomas Passin wrote: >> On 1/25/2023 7:38 PM, Peter J. Holzer wrote: >>> On 2023-01-25 16:30:56 -0500, Thomas Passin wrote: Great! Don't forget what I said about potential overheating if you hit the server with

Re: HTTP server benchmarking/load testing in Python

2023-01-26 Thread Grant Edwards
On 2023-01-26, Thomas Passin wrote: > On 1/25/2023 7:38 PM, Peter J. Holzer wrote: >> On 2023-01-25 16:30:56 -0500, Thomas Passin wrote: >>> Great! Don't forget what I said about potential overheating if you >>> hit the server with as many requests as it can handle. >> >> Frankly, if you can ove

Re: HTTP server benchmarking/load testing in Python

2023-01-26 Thread Thomas Passin
On 1/25/2023 11:23 PM, Dino wrote: On 1/25/2023 3:27 PM, Dino wrote: On 1/25/2023 1:33 PM, orzodk wrote: I have used locust with success in the past. https://locust.io First impression, exactly what I need. Thank you Orzo! the more I learn about Locust and I tinker with it, the more I lov

Re: HTTP server benchmarking/load testing in Python

2023-01-25 Thread Dino
On 1/25/2023 3:27 PM, Dino wrote: On 1/25/2023 1:33 PM, orzodk wrote: I have used locust with success in the past. https://locust.io First impression, exactly what I need. Thank you Orzo! the more I learn about Locust and I tinker with it, the more I love it. Thanks again. -- https://mai

Re: HTTP server benchmarking/load testing in Python

2023-01-25 Thread Thomas Passin
On 1/25/2023 8:36 PM, Chris Angelico wrote: On Thu, 26 Jan 2023 at 12:06, Thomas Passin wrote: On 1/25/2023 7:38 PM, Peter J. Holzer wrote: On 2023-01-25 16:30:56 -0500, Thomas Passin wrote: Great! Don't forget what I said about potential overheating if you hit the server with as many reque

Re: HTTP server benchmarking/load testing in Python

2023-01-25 Thread Chris Angelico
On Thu, 26 Jan 2023 at 12:06, Thomas Passin wrote: > > On 1/25/2023 7:38 PM, Peter J. Holzer wrote: > > On 2023-01-25 16:30:56 -0500, Thomas Passin wrote: > >> Great! Don't forget what I said about potential overheating if you > >> hit the server with as many requests as it can handle. > > > > Fr

Re: HTTP server benchmarking/load testing in Python

2023-01-25 Thread Thomas Passin
On 1/25/2023 7:38 PM, Peter J. Holzer wrote: On 2023-01-25 16:30:56 -0500, Thomas Passin wrote: Great! Don't forget what I said about potential overheating if you hit the server with as many requests as it can handle. Frankly, if you can overheat a server by hitting it with HTTP requests, get

Re: HTTP server benchmarking/load testing in Python

2023-01-25 Thread Peter J. Holzer
On 2023-01-25 16:30:56 -0500, Thomas Passin wrote: > Great! Don't forget what I said about potential overheating if you > hit the server with as many requests as it can handle. Frankly, if you can overheat a server by hitting it with HTTP requests, get better hardware and/or put it into a place w

Re: HTTP server benchmarking/load testing in Python

2023-01-25 Thread Thomas Passin
On 1/25/2023 3:29 PM, Dino wrote: On 1/25/2023 1:21 PM, Thomas Passin wrote: I actually have a Python program that does exactly this. Thank you, Thomas. I'll check out Locust, mentioned by Orzodk, as it looks like a mature library that appears to do exactly what I was hoping. Great! Don

Re: HTTP server benchmarking/load testing in Python

2023-01-25 Thread Dino
On 1/25/2023 1:21 PM, Thomas Passin wrote: I actually have a Python program that does exactly this. Thank you, Thomas. I'll check out Locust, mentioned by Orzodk, as it looks like a mature library that appears to do exactly what I was hoping. -- https://mail.python.org/mailman/listinfo

Re: HTTP server benchmarking/load testing in Python

2023-01-25 Thread Dino
On 1/25/2023 1:33 PM, orzodk wrote: I have used locust with success in the past. https://locust.io First impression, exactly what I need. Thank you Orzo! -- https://mail.python.org/mailman/listinfo/python-list

Re: HTTP server benchmarking/load testing in Python

2023-01-25 Thread orzodk
Dino writes: > Hello, I could use something like Apache ab in Python ( > https://httpd.apache.org/docs/2.4/programs/ab.html ). > > The reason why ab doesn't quite cut it for me is that I need to define > a pool of HTTP requests and I want the tool to run those (as opposed > to running the same re

Re: HTTP server benchmarking/load testing in Python

2023-01-25 Thread Thomas Passin
On 1/25/2023 10:53 AM, Dino wrote: Hello, I could use something like Apache ab in Python ( https://httpd.apache.org/docs/2.4/programs/ab.html ). The reason why ab doesn't quite cut it for me is that I need to define a pool of HTTP requests and I want the tool to run those (as opposed to run

Re: HTTP server + SQLite?

2010-05-04 Thread Terry Reedy
On 5/4/2010 2:07 AM, Bryan wrote: The SQLite developers state the situation brilliantly at http://www.sqlite.org/whentouse.html: For future reference, that link does not work with Thunderbird. This one does. http://www.sqlite.org/whentouse.html When posting links, best to put them on a lin

Re: HTTP server + SQLite?

2010-05-04 Thread Gilles Ganault
On Mon, 3 May 2010 23:07:08 -0700 (PDT), Bryan wrote: >I love SQLite because it solves problems I actually have. For the vast >majority of code I write, "lite" is a good thing, and lite as it is, >SQLite can handle several transactions per second. I give SQLite a >file path and in a split second I

Re: HTTP server + SQLite?

2010-05-03 Thread Bryan
John Nagle wrote: > [...] SQLite really > is a "lite" database.  Although there's good read concurrency, multiple > updates from multiple processes tend to result in sizable delays, since > the locking is via file locks and wait/retry logic. True, and I have other gripes about SQLite, but I've fal

Re: HTTP server + SQLite?

2010-05-03 Thread John Nagle
Gilles Ganault wrote: Hello I'd like to build a prototype that will combine a web server as front-end (it must support GZIPping data to the remote client when there are a lot of data to return), and SQLite as back-end, call the server from a VB.Net application, and see how well this works. I wan

Re: HTTP server + SQLite?

2010-05-03 Thread lbolla
On May 3, 8:46 am, Gilles Ganault wrote: > Hello > > I'd like to build a prototype that will combine a web server as > front-end (it must support GZIPping data to the remote client when > there are a lot of data to return), and SQLite as back-end, call the > server from a VB.Net application, and s

Re: HTTP server + SQLite?

2010-05-03 Thread Gilles Ganault
On Mon, 03 May 2010 11:51:41 +0200, Helmut Jarausch wrote: >http://www.karrigell.fr/doc/ Thanks for the tip. -- http://mail.python.org/mailman/listinfo/python-list

Re: HTTP server + SQLite?

2010-05-03 Thread Nat
interesting natalie5...@hotmail.co.jp natalie53...@yahoo.co.jp natalie5...@gmail.com wlipgf...@jupiter.ocn.ne.jp natalie5...@mbr.nifty.com natalie5...@xqg.biglobe.ne.jp natalie5...@zpost.plala.or.jp -- http://mail.python.org/mailman/listinfo/python-list

Re: HTTP server + SQLite?

2010-05-03 Thread Helmut Jarausch
On 05/03/10 09:46, Gilles Ganault wrote: > Hello > > I'd like to build a prototype that will combine a web server as > front-end (it must support GZIPping data to the remote client when > there are a lot of data to return), and SQLite as back-end, call the > server from a VB.Net application, and s

Re: HTTP server + SQLite?

2010-05-03 Thread Chris Rebert
On Mon, May 3, 2010 at 12:46 AM, Gilles Ganault wrote: > I'd like to build a prototype that will combine a web server as > front-end (it must support GZIPping data to the remote client when > there are a lot of data to return), and SQLite as back-end, call the > server from a VB.Net application, a

Re: HTTP server + SQLite?

2010-05-03 Thread alex23
Gilles Ganault wrote: > I'm no Python expert, so would appreciate any information on how to > combine a web server and SQLite into a single Python application. Hey Gilles, I'm a fan of the http framework, CherryPy[1]. Very quick and easy to get something up and running. The site also has some id

Re: Http server

2006-12-19 Thread Gert Cuykens
Does anybody know how to redirect a post request ? i have a js file that does a post request to a /php/action.php file and i would like for the secretary to just do the action method instead that is defined in her python Http class book, so i can run both php and python without changing the static

Re: Http server

2006-12-19 Thread Gert Cuykens
> > The cute secretary's name is "cherrypy.tools.staticdir". > > Check out her resume at http://www.cherrypy.org/wiki/StaticContent > > I think i am in love :) Cant believe this just works out import os.path import cherrypy pwd = os.path.dirname(os.path.abspath(__file__)) class Http: _cp_c

Re: Http server

2006-12-19 Thread Gert Cuykens
> The cute secretary's name is "cherrypy.tools.staticdir". > Check out her resume at http://www.cherrypy.org/wiki/StaticContent I think i am in love :) -- http://mail.python.org/mailman/listinfo/python-list

Re: Http server

2006-12-19 Thread fumanchu
Gert Cuykens wrote: > so far this works > > > import cherrypy > import os.path > > class Http: > > def index(self): > f = open(os.path.join(os.path.dirname(__file__), '../htm/index.htm')) > xml = f.read() > f.close() > return xml > index.exposed = True > > c

Re: HTTP Server Root Folder

2006-09-05 Thread Steve Holden
placid wrote: > Hi All, > > I have this BaseHTTPServer.HTTPServer that is located at C:\ (im on > Windows XP), when i run the program (httpserver.pyw) from the Run > Dialog as "C:\httpserver.pyw" the root folder ("\") for http server is > C:\, but when i add an entry to Registry Run so that it run

Re: HTTP server

2006-06-26 Thread placid
Simon Forman wrote: > ... > > > > Awesome! Glad to hear it. > > ... > > > > Thanks for the help. I got it to work now. > > > > You're welcome. I'm glad I could help you. :-D > Im having trouble with the following code for handling GET requests from a client to my HTTP server. What i want to do

Re: HTTP server

2006-06-25 Thread Simon Forman
placid wrote: > Simon Forman wrote: ... > > The file was named test.cgi. I changed it too test.py and it worked > Awesome! Glad to hear it. ... > > Thanks for the help. I got it to work now. > You're welcome. I'm glad I could help you. :-D Peace, ~Simon -- http://mail.python.org/mailman

Re: HTTP server

2006-06-25 Thread placid
Simon Forman wrote: > placid wrote: > > Simon Forman wrote: > > > > ... > > > For what you're asking about you'd probably want to use the > > > CGIHTTPRequestHandler from the CGIHTTPServer module instead. Check out > > > http://docs.python.org/lib/module-CGIHTTPServer.html > > > > This is what i

Re: HTTP server

2006-06-25 Thread Simon Forman
placid wrote: > Simon Forman wrote: > > ... > > For what you're asking about you'd probably want to use the > > CGIHTTPRequestHandler from the CGIHTTPServer module instead. Check out > > http://docs.python.org/lib/module-CGIHTTPServer.html > > This is what i was after, thanks for the tip. > You'r

Re: HTTP server

2006-06-25 Thread placid
Simon Forman wrote: > > > Ok, seriously, I don't know how pydoc does it, but when I need a > quick-and-dirty http server [written in python] I use something like > this: > > from BaseHTTPServer import HTTPServer > from SimpleHTTPServer import SimpleHTTPRequestHandler > > HTTPServer(('', 8000), Si

Re: HTTP server

2006-06-24 Thread Simon Forman
placid wrote: > Hi all, > > Ive been reading about creating a HTTP server like the one pydoc > creates (and studying pydoc source code). What i want to know, is it > possible to create server that creates a webpage with hyperlinks that > communicate back to the HTTP server, where each link accessed