473,396 Members | 1,767 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Can I make Asp program sleep?

Hi all,

We use Payflow Pro from Verisign(Now it calls paypal Payflow Pro) as a
gateway software to process credit card payment.

Most of time, Paypal server is OK and we don't have problems for credit card
payment. But we do experience some issues sometimes.
i.e. Occasionally, after credit card information was submitted to payPal
server, we didn't get any response from their server, no error code, it is
just an empty string.

I am not sure how it happened. I am thinking it's probably caused by our
server program not waiting long enough for their server's response if their
server has some performance issue(slow in response) at that time. When the
server response is not back yet, our program goes forward already, then cause
the return string from their server is empty. Am I on the right track?

That's why I am thinking to make our asp program sleep for a while at this
statement:

Executor.Application = sDosCmd 'this command basically has credit card
info for processing
sResult=Executor.ExecuteDosApp 'sResult is the string back from paypal server

I want to add sleep 3000 right after this statement.
then check is sResult is empty, if not, program goes on. If yes, continue to
sleep...
until a non-empty string returns or quit the transaction after a long enough
waiting.

Would you like to share some your experiences of credit card transactions? I
am dealing with a production server, so it is a very critical issue for us.

I googled a bit. It says on ServerObejcts.com it has waitfor 1.0 we can
download.
I don't see this product.

Thank you,
--
Betty
Nov 20 '08 #1
4 3352
No.

c676228 wrote:
Hi all,

We use Payflow Pro from Verisign(Now it calls paypal Payflow Pro) as a
gateway software to process credit card payment.

Most of time, Paypal server is OK and we don't have problems for
credit card payment. But we do experience some issues sometimes.
i.e. Occasionally, after credit card information was submitted to
payPal server, we didn't get any response from their server, no error
code, it is just an empty string.

I am not sure how it happened. I am thinking it's probably caused by
our server program not waiting long enough for their server's
response if their server has some performance issue(slow in response)
at that time. When the server response is not back yet, our program
goes forward already, then cause the return string from their server
is empty. Am I on the right track?

That's why I am thinking to make our asp program sleep for a while at
this statement:

Executor.Application = sDosCmd 'this command basically has credit
card
info for processing
sResult=Executor.ExecuteDosApp 'sResult is the string back from
paypal server

I want to add sleep 3000 right after this statement.
then check is sResult is empty, if not, program goes on. If yes,
continue to sleep...
until a non-empty string returns or quit the transaction after a long
enough waiting.

Would you like to share some your experiences of credit card
transactions? I am dealing with a production server, so it is a very
critical issue for us.

I googled a bit. It says on ServerObejcts.com it has waitfor 1.0 we
can download.
I don't see this product.

Thank you,
--
Betty
--
HTH,
Bob Barrows
Nov 20 '08 #2
Bob Barrows wrote on 20 nov 2008 in
microsoft.public.inetserver.asp.general:
>Can I make Asp program sleep?
No.
Perhaps yes, Bob,

Does this wait for 100 millisecs, or till the theString is not empty?

[jscript]
var endTime = new Date() + 100
do {
now get fresh value for theString;
} while (theString=="" && endTime new Date());

[not!!! tested]

It would be much better to have the client do new AJAX requests for some
time, until the answer is in, freeing the server from any waiting.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Nov 20 '08 #3
Evertjan. wrote:
Bob Barrows wrote on 20 nov 2008 in
microsoft.public.inetserver.asp.general:
>>Can I make Asp program sleep?
>No.

Perhaps yes, Bob,

Does this wait for 100 millisecs, or till the theString is not empty?

[jscript]
var endTime = new Date() + 100
do {
now get fresh value for theString;
} while (theString=="" && endTime new Date());

[not!!! tested]
That is not sleeping, but you know that.
--
HTH,
Bob Barrows
Nov 20 '08 #4
Bob Barrows wrote on 20 nov 2008 in
microsoft.public.inetserver.asp.general:
Evertjan. wrote:
>Bob Barrows wrote on 20 nov 2008 in
microsoft.public.inetserver.asp.general:
>>>Can I make Asp program sleep?
>>No.

Perhaps yes, Bob,

Does this wait for 100 millisecs, or till the theString is not empty?

[jscript]
var endTime = new Date() + 100
do {
now get fresh value for theString;
} while (theString=="" && endTime new Date());

[not!!! tested]
That is not sleeping, but you know that.
That is just a question of semantics, Bob, of definition.

The many parallel tasks of the OS are distributed anyway, so if a single
task is not given the right priority, there is no or not much difference
with a central task distributing loop that incorporates sleep timeouts.

Only in a badly designed OS, such loops take too much of the processing
time pool.

Perhaps they are badly designed anyway.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Nov 20 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Eric Marvets | last post by:
I want to make the main thread in my app sleep while I have a worker do some arbitrary task. The problem is waking the main thread back up. Can anyone make this code sample work? private void...
2
by: Richard Siderits | last post by:
Greetings. I am trying to write a small application for controlling CRYDOM AC and DC switches from the parallel port using pyparallel. The project is described in the latest issue of MAKE...
12
by: Thomas Carter | last post by:
Is it possible, in an OS-independent way, to suspend a C program for some specified amount of time, in such a way that CPU load, due to this program, while remaining suspended, is non-existant or,...
8
by: Roger Solano | last post by:
How can I make my VB .net program sleep or pause for say 5 minutes? Any help would be much appreciated. Roger
0
by: pixtudio | last post by:
I have a problem making a typing tutor program in c.. im using djgpp and running on a windows xp. my problem is that, how can i be able to let the letters/number fall at the same time. example:...
8
by: Gordon | last post by:
Hi; I have designed a vb.net program that reads a dateTime value from a database table and then compares it to Now() through dateTime.compare(). I have loaded an array with my datetime values...
14
by: fdu.xiaojf | last post by:
Hi, I have a program which will continue to run for several days. When it is running, I can't do anything except waiting because it takes over most of the CUP time. Is it possible that the...
0
by: Buckaroo Banzai | last post by:
Hello, newbie here... I'm writing this program but when I click the start button which should initiate either the Hare or the Tortoise, it does not, this is the first time I use threads, so the...
6
by: John Wright | last post by:
During my program startup I need to check for a couple of things. 1. I need to check for network availability 2. I need to check for database connectivity 3. I need to check for access to the...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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,...
0
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...

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.