Hi,there. Sometimes a python CGI script tries to output great
quantities of HTML responce or in other cases, it just falls into a
dead loop. How could my client close that CGI script running on the
server? I tried to use the STOP button in the web browser button, but
it does not work.
In addition, how could I configure that if a CGI program do not finish
its task in 20sec or so, it will be automatically terminated? 3 2600
Sullivan WxPyQtKinter wrote: Hi,there. Sometimes a python CGI script tries to output great quantities of HTML responce or in other cases, it just falls into a dead loop. How could my client close that CGI script running on the server?
Generally speaking, remote users don't have control over your local
processes, and if there is some problem with that local process that
causes it to loop indefinitely, the chance that it could react
appropriately to the browser is slim anyway. So the answer is to fix
the problem with the CGI program.
In addition, how could I configure that if a CGI program do not finish its task in 20sec or so, it will be automatically terminated?
I suppose you could run it in a background thread or process,
terminating it after the allotted time has expired, but I suspect you'd
be better off addressing whatever is causing the problem in the first
place. What sort of CGI program is this?
--
Ben Sizer
In article <11************ *********@z34g2 000cwc.googlegr oups.com>, Sullivan WxPyQtKinter wrote: Hi,there. Sometimes a python CGI script tries to output great quantities of HTML responce or in other cases, it just falls into a dead loop. How could my client close that CGI script running on the server? I tried to use the STOP button in the web browser button, but it does not work.
It depends on what CGI framework you're using. If the user hits
'stop', the client browser should close its connection and your web
server should close the pipe to your CGI process. I'd expect you to
get a SIGPIPE when next trying to output data.
In addition, how could I configure that if a CGI program do not finish its task in 20sec or so, it will be automatically terminated?
Do you mean a specific CGI, or all CGIs in general? If it's in general
then you need to see if your web server can be configured to do that.
If it's a specific CGI, check out signal.alarm() or
resource.setrli mit(resource.RL IMIT_CPU, ...). Apache has a RLimitCPU
directive, but be careful with it since it may well not do what you
expect.
Actually my project is converting certain specially costomized XML
file to HTML to display and edit. Sometimes the XML file is too big, or
the client upload a very huge file for the server to process, which
exceeds the processing ability of my server.(after all, it is a small
server on my poor laptop....which use winXP and IIS......not
professional, huh?)
I configures IIS to terminate CGI program if it do not complete in 20
sec. But it does not work....Perhaps I should go to a IIS or apache
forum for answer.
Thank you. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Marc |
last post by:
Hello,
i'm having a problem while downloading files on my server.
When someone downloads a file ( push ) from the website, the system refuses
to continue browsing while the download
is going on. Any way to help this problem ?
I run IIS with ASP.
Marc
|
by: Yatharth |
last post by:
Hi,
I m new to threading and i have successfully runed threading but i
could display value on my web page ,but its working in code behind
when i see it through debugger,plzzzzzzz help me here is the code
below:
i just wana display the simple array value stored in my array variable
in my textbox thats it.
|
by: trevor oakley |
last post by:
I have solved an earlier problem which I posted here, about coding Data
Source in OleDbConnection - I am new to ASP.Net. I do not understand the
solution, I just blindly followed the book (Teach Yourself ASP.NET in 21
Days), and guessed, and it worked.
When OleDbConnection is used to connect to a database, ASP.NET appears to
expect a client source, not a Web server reference. I just coded
c:\WWWRoot\.... and it worked.
Does this mean...
|
by: Michael Bredbury |
last post by:
I am developing using Visual Studio .NET 2002 using ASP.NET and
VB.NET. This is a web-based project which needs to install various
ActiveX components on the users PC. ActiveX is needed because the
project involves automation of Word, Excel etc on the CLIENT side.
I have binary data which is an EXE file stored inside an SQL Server
Image table which I need to pass to the clients browser and create the
original EXE file on their hard disk....
|
by: Sam-Kiwi |
last post by:
I've spent the last 6 months developing a pay-per-download website using
ASP.NET
Users purchase documents and then download them.
The intention is that users are only charged for documents they successfuly
download.
My problem revolves around detecting a successful download, the steps I take
to handle the download are as follows:
| |
by: Jeffery Franzen |
last post by:
Anyone know where the documentation is regarding Activex controls in asp web forms?
I'm using VS.NET 2002 enterprise and am trying to use Activex controls in vb.net web form app.
I do the add control to pallete and then add a reference. I get the interop dll added to bin folder.
I did this with the MediaPlayer activex control as a simple case to to try and get it working.
I set the control to autostart via the html parameter tag for...
|
by: thisis |
last post by:
Hi All,
myGetImage.asp is suppose to create a temporary file in the client
side,
and display in on the client web browser.
myGetImage.asp needs to know the clients web browser temporary system
path,
in order to create the temp file.
|
by: Smith |
last post by:
Hello,
I need to stream data from a "DataTable" to the client's machine. The data
first need to be converted to .CSV , and ziped before streaming it to the
client.
Does anyone has any experience with this? Any code snippet will be very
welcome.
Many thanks in advance
|
by: amolbehl |
last post by:
Hi I have to create a php or javascript that will be called from the main page of a website and it has to recognize the clients browser which opens that webpage and send me an email ... the email part is quite simple with mailto command but using the SERVER Side lang like PHP can we find the clients browser ??
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |