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

Re: http_url_get() - Previous Payload in Memory



George,

I looked over all of the code in HTTPAPI that's involved in doing a get request, and I can't see any way it could keep the document in memory. In fact, HTTPAPI doesn't ever store the whole document in memory (unless it's very small), it receives 8k, writes it to disk, receives the next 8k, writes it, etc. So I suspect the problem is somewhere else.

The code you provided is not something I can run. It relies on several dependencies that I don't have -- and does a lot of extra stuff that isn't related to HTTPAPI.

If you (or whomever reported the issue to you) can strip it down into a working program that contains only the HTTPAPI calls, but shows the problem of getting the same data more than once, then I'll be happy to take a look.

But I simply lack the time to spend hours stripping down your code and eliminating the unnecessary parts myself.

-SK




On 09/14/16 03:52, Stella Tools wrote:
    Hi Scott,
    It will be difficult to recreate as I was using CA Plex (and currently
    have no access to IBMi..no jobs). I created CA Plex patterns to
    leverage your great HTTPAPI work and gave it free to the community. One
    of the downloaders has reported this issue. Now you and I really should
    not kill ourselves looking at this (both do it for free) I just thought
    I would suggest some things to look at the for this particular CA Plex
    user (he is no dummy)
    I think the issue is it is a client server implementation. C++ Client
    calling RPG pgm and the RPG remains in memory until the c++ client is
    closed (which closes a listener job on the ibmi which dedicated to that
    particular C++ Client session)
    Attached is the � CA Plex generated rpg code (no comment on its format
    and why I have been forced to look at yours and others oss to bend and
    twist CA Plex to do 'modern' things.
    The example attached is based on your Example12, JSON over REST.
    First time all works fine but second time being called via the c++
    client I am assured after the following code there is the previous
    payload and current payload in the temp file.
    �  �  �  �  �  �  �  �  �  � F0000B = http_url_get(F00002:F00008);
    Regards
    George Jeffcock


-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------