[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: http_url_post spped



Sender: "Stoicescu, Adriana" <astoicescu@xxxxxxxxxx>

Thanks for your advice. One more question related to HTTP_persist_post that
I did not look into yet. The connection is established in a multitude of
interactive jobs, each user has to interactively validate the shipper in
NextLinx database. Would HTTP_persist_post keep the connection open across
all this jobs? If yes, when is the connection closed?
Regards,
Adriana

-----Original Message-----
From: owner-ftpapi@xxxxxxxxxxxxx [mailto:owner-ftpapi@xxxxxxxxxxxxx] On
Behalf Of Scott Klement
Sent: Wednesday, March 09, 2005 12:07 AM
To: 'ftpapi@xxxxxxxxxxxxx'
Subject: Re: http_url_post spped

Sender: Scott Klement <sk@xxxxxxxxxxxxxxxx>

Hello,

> We have downloaded your application and used http_utl_post as in one of
your
> program. It takes somewhere in between 3 to 10 seconds to run
interactively.
> We cannot run it in batch because we need to take an action as sson as we
> get the reply. Could you guide me where to look and what to do to speed up
> the process under 1 second?

I can't see anything in your program that would cause it to be slow. Also, 
unless your system is really pushing it's interactive capacity, it won't 
matter if you run this program in batch or interactive.  Remember, the 
bottleneck will be the network connection, not the CPU.

I don't see anything wrong -- but here are a few things you might 
experiment with to see if they make a difference or not:

a) Make sure you're running the latest version of HTTPAPI. (Currently, 
this is version 1.10)

b) Try specifying "connection: close" as an additional HTTP header, but 
only if you have to.  In other words, try it, and if it speeds things up, 
use it.  Otherwise, don't.

c) Consider using HTTP_url_post_stmf() instead of loading the stream file 
into a user space.  This shouldn't make a big difference -- but it'll be 
slightly faster.  However, if you do that, be aware that HTTPAPI won't 
automatically translate the data in the stream file. It'll assume that if 
you want it to be ASCII, it's already ASCII in the file.

d) If you need to make multiple calls to the web server, use the 
HTTP_persist_post functions so that the connection doesn't have to be 
reestablished each time.

That's all I can think of, right now...
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubsribe from the list send mail
to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr
-----------------------------------------------------------------------
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubsribe from the list send mail
to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr
-----------------------------------------------------------------------