473,670 Members | 2,422 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Terminate a user request once it reached timeout

3 New Member
I am trying to get the user details from the database,
the request handler is in execution, but mean while i would like to verify the timeout value. Once request processing reached timeout value, the request should be terminated.
I want to know how to track that process in execution and terminate that process once timeout value reached.

I have developed routines for getting the details from db, now i need suggestion for tracking the initiated process and terminating that process once timeout reached.

i am implementing in c++ unix.
Jan 3 '08 #1
1 2202
Savage
1,764 Recognized Expert Top Contributor
I am trying to get the user details from the database,
the request handler is in execution, but mean while i would like to verify the timeout value. Once request processing reached timeout value, the request should be terminated.
I want to know how to track that process in execution and terminate that process once timeout value reached.

I have developed routines for getting the details from db, now i need suggestion for tracking the initiated process and terminating that process once timeout reached.

i am implementing in c++ unix.
Probably solvable with multi threading.One thread will process request while other is watching at the timer,once timer exceeds timer thread terminates request processing thread.It may be possible to solve it without MT,but it won't be nice.

Savage
Jan 3 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

8
3859
by: Maddman | last post by:
Newbie here. I've got my database set up in SQL 2000, and have started an Access adp for a front end. I have 10 licenses, and at the moment the only accesses are the server through Remote Desktop and one person into the ADP. I started getting ODBC timeout errors when running a complex query, so I started poking around. In the logs there's messages saying the maximum of 10 user connections has been reached, over and over again. I'm...
4
5446
by: Nedu N | last post by:
Hi, I am using Forms authentication -in which - I am trying to use User.Identity.Name, i am getting the user name in this field even after i logout (i.e, FormaAuthentication.SighnOut(), and also i am trying to use User.Identity.IsAuthenticated for checking whether the User has logged in or not. I don't want to store the user name in Session variable once the User logs in.
7
2913
by: jsale | last post by:
I'm currently using ASP.NET with VS2003 and SQL Server 2003. The ASP.NET app i have made is running on IIS v6 and consists of a number of pages that allow the user to read information from the database into classes, which are used throughout the application. I have made class collections which, upon reading from the DB, create an instance of the class and store the DB values in there temporarily. My problem is that if user1 looks at...
6
4372
by: anoj | last post by:
Hi All i need to prevent multiple logins from the same user at the same time. what is the best way to do this . How can i detect if a user closes the browser window without logging out so tht his/her id can be removed from the global list maintained for the looged in users
3
1985
by: ad | last post by:
In some condition, like another user log in with the some ID, I want to close a user's session. How can we terminate a user's session with program?
1
11050
by: Jake K | last post by:
I have a system timer that elapses every 10 seconds and must execute every ten seconds. Basically every 10 seconds I need to insert into a table. The following code, however, causes a "Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached." error at cn.open() after about 2 minutes of executing. private...
1
5991
by: jobs | last post by:
Re: Troubleshooting Timeout expired. All pooled connections were in use and max pool size was reached. New webservers. win2003. IIS6. asp.net 2.0/ sql server 2005 and Oracle 9i through a 64 bit Oracle client. Everything working fine until this. I started getting these errors as the new website activity started to heat up. Timeout expired. The timeout period elapsed prior to obtaining a
2
1708
by: Hiten | last post by:
Our application is created in C#, ASP.Net 2.0, SQL 2005; the session is managed in SQL server with ASPState. We often file below exception Error Details : Exception of type 'System.Web.HttpException' was thrown. Source : System.Web Stack Information : at System.Web.HttpAsyncResult.End() at
0
1001
by: Hiten | last post by:
Our application is created in C#, ASP.Net 2.0, SQL 2005; the session is managed in SQL server with ASPState. We often file below exception Error Details : Exception of type 'System.Web.HttpException' was thrown. Source : System.Web Stack Information : at System.Web.HttpAsyncResult.End() at
0
8466
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8901
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8659
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7412
agi2029
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...
1
6212
isladogs
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...
0
5683
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();...
0
4208
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4388
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2799
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.