CURL affects other function's process

Discussion in 'PHP' started by dineshsdk85, Oct 22, 2009.

  1. #1
    Hi,

    I am running my application in php-gtk2. It is a standalone application. I am using CURL to retrieve XML tags from the asterisk server in one function. Whenever i call that function, my application hangs for 30 to 40 secs. That CURL usually will take that time to retrieve the XML code from the asterisk server. I want to handle this situation now.

    Can anyone give me the idea or sample to run my application smoothly without hanging? In that way my CURL program should give it's result in parallel other function should also work if i do any action in my application.
     
    dineshsdk85, Oct 22, 2009 IP
  2. mastermunj

    mastermunj Well-Known Member

    Messages:
    687
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    110
    #2
    CURL will not slow down the application. Its a component of the application which is taking so much time which you need to identify and optimize if possible.

    Share more details about process and structures to give better idea about it..
     
    mastermunj, Oct 22, 2009 IP
  3. shortcut

    shortcut Peon

    Messages:
    116
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    curl will not cause any kind of issues
     
    shortcut, Oct 23, 2009 IP
  4. xenon2010

    xenon2010 Peon

    Messages:
    237
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I think you need to use flush() function?
     
    xenon2010, Oct 23, 2009 IP