InDesign problem With Https cURL Seems Very Slow at first time  to handshaking to server

I am trying to connect the server using cURL from Indesign, but when i am trying to call to server the indesign takes so much time to open and initialize the socket it takes 25 seconds at first time only, but On all subsequent calls it is fast,
*but when i am tryid that same programe with an c++ empty project it is very fast in 2 second we get a result back,
*So the Problem With Indesign Socket initialization using https at first time because i have tryid same Curl On Simple c++ program and it is fast at all calls
Specification:
I am Currently using
     Indesign cs7 version 9.0
     visual studio 2010
Can Anyone tell me why It happens,
my code snippet is as follows please try to find if anyone knows better.
         curl_global_init(CURL_GLOBAL_ALL);
          curl = curl_easy_init();
         struct data config;
      config.trace_ascii = 1; /* enable ascii tracing */
      struct curl_slist *chunk = NULL;
         curl_slist_append( chunk, "Content-Type: application/json");
      curl = curl_easy_init();
      struct AppMemoryStruct chunk1;
         chunk1.memory = (char *)malloc(1);  /* will be grown as needed by the realloc above */
         chunk1.size = 0;    /* no data at this point */
       if(curl) {
             curl_easy_setopt(curl, CURLOPT_URL, url.GetPlatformString().c_str());
             curl_easy_setopt(curl,CURLOPT_SSLCERTTYPE,"PEM");
             curl_easy_setopt(curl, CURLOPT_SSLCERT, "C:\\test\\omg.aps.net.pem");
             curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, FALSE);
          curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 2);
             curl_easy_setopt(curl,CURLOPT_KEYPASSWD,"");
             char error[1024];
             curl_easy_setopt ( curl, CURLOPT_ERRORBUFFER, error );
       /* send all data to this function  */
             curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, &AppWriteMemoryCallback);
      /* we pass our 'chunk' struct to the callback function */
             curl_easy_setopt(curl, CURLOPT_WRITEDATA, (void *)&chunk1);
      /* some servers don't like requests that are made without a user-agent
          field, so we provide one */
             //curl_easy_setopt(curl, CURLOPT_USERAGENT, "libcurl-agent/1.0");
             //curl_easy_setopt(curl, CURLOPT_HTTPHEADER, chunk);
             //curl_easy_setopt(curl, CURLOPT_HTTPGET,1);
     //heres the performance get down its around 25 seconds when i am calling The server Using Curl Object Having
     //https url 
            res = curl_easy_perform(curl);
    // till here
             if(CURLE_OK != res)
                 errorCode = kFalse;
                 if(chunk1.memory)
                     free(chunk1.memory);
                  curl_easy_cleanup(curl);
               return errorCode;
             errorCode = kTrue;
             if(chunk1.memory)
                 returndata.SetCString(chunk1.memory);
                 free(chunk1.memory);
           /* always cleanup */
         curl_easy_cleanup(curl);curl_global_init(CURL_GLOBAL_ALL);
      please try to find a key issue why the performance is very bad using https.
Thanks,

I was tempted to move this over to the InDesign SDK forum where there are coders, but there isn't a lot of traffic over there, so I'm going to leave this open here with the advice that you probably won't get an answer from anyone here becasue we are, for the most part, not folks who work with code beyond scripting (and very few scripters hang out here, either).
You should cross-post over there yourself and hope someone who understnds the qusetion sees it in one place or the other.

Similar Messages

  • I am having a problem with my cs6 running very slow and when i save i am getting an error message that says, "This document is bigger than 2 gb (the file may not be read correctly by some TIFF viewers.) please help

    I am having a problem with my cs6 running very slow and when i save i am getting an error message that says, "This document is bigger than 2 gb (the file may not be read correctly by some TIFF viewers.) please help

    wen6275,
    It looks like you're actually using a camera or phone to take a photo of your monitor.
    That's not what is commonly known as a "screen shot". 
    It looks like you're on a Mac.  Hitting Command+Shift+3 places a capture of the contents of your entire monitor on your Desktop; hitting Command+Shift+4 will give you a cross-hairs cursor for you to select just the portion you want to capture.
    I'm mentioning this because I fear I'm not construing your original post correctly when you type "I am working with a large files [sic], currently it has 149 layers, all of which are high resolution photographs", so I'm wondering if there's some similar use of your own idiosyncratic nomenclature in your description of your troublesome file.
    Perhaps I'm just having a major senior moment myself, but I'm utterly unable to imagine such a file.  Would you mind elaborating?

  • Report Viewer is very slow at first time

    Hi,
    We are facing very slow when loading the reports.For any search it is taking more time to load the reports.We are thinking issue is due to report viewer control and we are using report viewer control version 10.0.0.0.Could you please let us know how to resolve
    this issue.
    Thanks,
    Vijay

    How big id the query?  How much memory does the server have? It is possible that an execution plan/data pages of the query was thrown from the cache and SQL Server needs to compile/read the data from disk again.
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • New iMac is VERY SLOW on first time bootup

    I just bought a new iMac this evening and am trying to get through the initial setup but this thing is TERRIBLY slow.  I'm wondering if I purchased a bad one or something.  When im going through the set up menue (selecting country and connecting to internet), i click continue and it sits there for 30 seconds before it actually registered that I clicked continue. 
    When i first plugged in the power cord and it started up...it sat at the white boot up screen (with apple logo and loading wheel) for 15 minutes before it finally started the setup process.
    Is this normal or did I get a DOA computer?

    Not normal, I have had a few iMacs and they have never done that. I imagine even with the standard option 5400rpm drive in the new 21.5" iMacs it should still boot faster. Take it back, its new get another one.

  • Problem with running Premiere Elements 12 for the first time.

    I have just purchased a download version of Premiere Elements 12.0 and have installed it on my PC running on Windows 7 (64 bit). On first running Elements, however, the program gets stuck on loading "mveH264Exporter.prm" and proceeds no further. I've tried uninstalling and reinstalling, but same problem. I previously had Elements 10 installed and that was working. Any advice offered would be appreciated.

    First we need to check , whether the LAN settings is set to detect settings Automatically or not.
    Follow below steps .
    1)Open Control Panel and then click on the option "Network and Internet" .
    2)Click on Internet options, click on 'Connections' tab.
    3)In the 'Connections' tab, select 'LAN' settings, you will be able to view the Local area network settings box.
    4)Check the box-"Automatically Detect Settings" and then "uncheck" all the other check boxes like 'Use automatic configuration script', 'Use a proxy server' , Bypass proxy server' ,then click on ok button .
    5)Click on "LAN settings" button again , make sure "Automatically Detect Settings" is the only option selected, keep the LAN properties window open.
    Then launch Premiere Elements 12 and try to sign in.
    If the settings were already set like that or you face same issue after signing in , let me know

  • IPad mini with retina still having wifi problems with iOS 8.0.2 - slow or none. Resetting temporarily fixes problem it very annoying. Please fix Apple! Not up to scratch.

    iPad mini with retina still having wifi problems with iOS 8.0.2 - slow or none. Resetting temporarily fixes problem it very annoying. Please fix Apple! Not up to scratch.

    I Have followed these steps, and tried others, such as resetting all my network settings. At best these only temporarily fix the problem - wifi still becomes slow or stops. I have other Apple devices connecting fine to my airport express. why is my iPad mini not working? Is it related to the fact it is 3G and I don't have a sim card installed? It is the current top of the range model with iOS 8.0.2. I paid over the odds for the best, and it is almost completely redundant.  Apple - I'm losing faith. You need to keep the public better informed and fix this problem fast, otherwise I will leave you for good.

  • Ello, I changed my Imac hard drive which no longer worked. I installed a hard drive Western Digital 500 GB 7200 rpm SATA3 WD5002AALX 32M Black. Sometimes I see the hard disk in the utility on the Starter CD, but access seems very slow. By cons when I want

    Hello, I changed my Imac hard drive which no longer worked. I installed a hard drive
    Western Digital 500 GB 7200 rpm SATA3 WD5002AALX 32M Black. Sometimes I see the hard disk in the utility on the Starter CD, but access seems very slow. By cons when I want
    install OS X 10.4.2 on the hard drive, I do not see the disk. What is the problem?

    Thanks for the help
    I started on the installation CD OS X 10.4.2, I used Disk Utility
    to partition the disk according to the document that you have proposed. unfortunately
    I have not succeeded. When I partition the disk, even if I called it Macintosh HD, it
    does not keep the name and it shows disk0s3 instead. I did an erase on disk.
    When I mount the disk it tells me that I must repair. When I tried to repair, I got
    the following message:
    Volume check failed
    The underflying task reported failure on exit
    1 HFS volume checked
    1 volume could not be repaired because of an error.
    I also had a message:
    Invalid b-tree node size.
    Note: The disc is new, but it has already been formatted on a computer Imac 27 inch 2011 OS X Lion.
          I used a USB 2.0 to SATA cable to adjust the formatting.
    What to do to fix it?

  • Please help us, we have a problem with loading a page is slow we have to wait a longer time to open our one page, thanks in advance

    Please help us, we have a problem with loading a page is slow we have to wait a longer time to open our one page, thanks in advance

    You can try these steps in case of issues with web pages:
    You can reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files.
    *Hold down the Shift key and left-click the Reload button
    *Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    *Press "Command + Shift + R" (Mac)
    Clear the cache and cookies only from websites that cause problems.
    "Clear the Cache":
    *Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Firefox/Tools > Options > Privacy > "Use custom settings for history" > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • I update my iphone 4s with iso8 but its very slow can i go back to iso7 ?

    I update my iphone 4s with iso8 but its very slow can i go back to iso7 ?

    Is everything slow?  What apps are slow?
    Try a reboot.
    http://www.wikihow.com/Reboot-an-iPad

  • Backup to TimeMachine with WI FI is very slow!

    Backup to TimeMachine with WI FI is very slow!
    I set the backup with TM but backups and slow
    We can Help Me ?

    alexrav wrote:
    Backup to TimeMachine with WI FI is very slow!
    I set the backup with TM but backups and slow
    We can Help Me ?
    Yes, WIFI is slow. If this is your first backup, it will be much faster if you connect to your Time Capsule or Airport Express via an Ethernet Cable.
    Also try the things in item #D2 of the Time Machine - Troubleshooting *User Tip* at the top of this forum.

  • My IMac 2009 with snow Leopard is very slow. What can I do ? I'm french

    My IMac 2009 with snow Leopard is very slow. What can I do ? I'm french

    Patjan73 wrote:
    My IMac 2009 with snow Leopard is very slow. What can I do ? I'm french
    The first two things I recommend is boot from your installer dvd or external bootable drive and repair/verify your drives with Disk Utility (not repair permissions) and do a smc and pram reset.
    Also make sure you have at least 20GB to 25GB free space on your boot volume for OS operations.

  • App store seems very slow

    App store seems very slow on my MacBook Pro.  If I turn off Keychain->Preferences->Certificates->CRL then it runs normally, but leaving this off might be a bad idea for security reasons.  Is there a better solution?

    If you have any third (application enhancers) apps such as Little Snitch or anti virus software installed, that could be why the App Store runs slow for you.

  • HT1338 My MacBook Air is very slow. Every time I click the mouse, the spinning wheel appears and remains for up to 30 seconds. Can you help me?

    My MacBook Air is very slow. Every time I click the mouse, the spinning wheel appears and remains for up to 30 seconds before the screen changes. This has been happening the past 24 hours. Any ideas?

    First, back up all data immediately, as your boot drive may be failing.
    If you have more than ten or so files or folders on your Desktop, move them, temporarily at least, somewhere else in your home folder.
    If iCloud is enabled, disable it.
    Disconnect all wired peripherals except keyboard, mouse, and monitor, if applicable. Launch the usual set of applications you use when you notice the problem.
    Step 1
    Launch the Activity Monitor application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ If you’re running Mac OS X 10.7 or later, open LaunchPad. Click Utilities, then Activity Monitor in the page that opens.
    Select the CPU tab of the Activity Monitor window.
    Select All Processes from the menu in the toolbar, if not already selected.
    Click the heading of the % CPU column in the process table to sort the entries by CPU usage. You may have to click it twice to get the highest value at the top. What is it, and what is the process? Also post the values for % User, % System, and % Idle at the bottom of the window.
    Select the System Memory tab. What values are shown in the bottom part of the window for Page outs and Swap used?
    Step 2
    You must be logged in as an administrator to carry out this step.
    Launch the Console application in the same way as above. Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left.
    Post the 50 or so most recent messages in the log — the text, please, not a screenshot.
    Important: Some personal information, such as your name, may appear in the log. Edit it out before posting.

  • Having serious problems with calendar duplications, one birthday now showing 174 times on one day! Help!

    Having serious problems with calendar duplications, one birthday now showing 174 times on one day! Help!

    Having serious problems with calendar duplications, one birthday now showing 174 times on one day! Help!

  • TS3276 Hi there I am having trouble with my outlook express this is the first time it has happened it keeps telling me can't connect to the SMTP server and every password I have tried is incorrect this is for 'iCloud' very frustrating as all our phones ar

    Hi there I am having trouble with my outlook express this is the first time it has happened it keeps telling me can't connect to the SMTP server and every password I have tried is incorrect this is for 'iCloud' very frustrating as all our phones are ok

    Well I am feeling a bit silly now because that was all I had to do. In the past Workgroup Manager had always opened right up to the list of my users, I never even thought to click on that but apparently that was all that was needed.
    I still am not sure how the iChat Server preferences changed themselves on me, but it is not the first time I have had weird "settings" issues with our Snow Leopard Server.
    Thanks!

Maybe you are looking for

  • How do i install a superdrive

    Hello, Just wondering if anybody knows how I can find instructions, or if anyone is willing to give them, on how to install/replace a superdrive in a 2006-era MacBook. My superdrive pulled the chute, I have a new one, now I just need to know how to r

  • How do I reshuffle the numbering of my songs in a playlist?

    Up until iTunes 11, when I started playing a playlist in Shuffle mode, it resheffled the songs and renumbered them for this session.  This gave me an option to see if similar-sounding songs were by the same artist, or from the same album.  Now in iTu

  • How can I put a value in Request or session?

    hi, I have the following code in the hash table for storing the date in an Action Class. *ht.put("date", new Timestamp(new Date().getTime()));*and I want to retrieve this date after 10 days. Shall i put the value in Session or Request for retrieving

  • Clip masked image moves after save- little help please?

    Hi, All. I've been working at a printing company for the last 3 years and have seen the issue I'm about to describe only a handful of times. I'd like to understand it more and know if there is a fix that can be utilized before saving the file for pro

  • Are they the same?

    i need to connect to a remote server, i know its ip as: jint29-14.hast.com.au is the ip address similar to a number (i.e. 3333.333.333.33), so i can use it directly for connection? thx