longtime-exec blocks other requests?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Frank Thorstens

    longtime-exec blocks other requests?

    Hi,

    i have a question. My PHP script calls a passthru (zip that creates a biiig
    archive). This command can take a lot of time, perhaps 20 seconds or so. Is
    the complete PHP engine on this server blocked for this time? If other users
    call this script (oder other scripts), do they have to wait 20 seconds?

    bye,
    Frank


  • Chung Leong

    #2
    Re: longtime-exec blocks other requests?

    No, unless you have a web server that can only handle one connection at a
    time.

    If a session is left open the user who made the request would be blocked,
    however.

    Uzytkownik "Frank Thorstens" <FrankThorstens @gmx.de> napisal w wiadomosci
    news:c2sjpm$20n jn6$1@ID-202045.news.uni-berlin.de...[color=blue]
    > Hi,
    >
    > i have a question. My PHP script calls a passthru (zip that creates a[/color]
    biiig[color=blue]
    > archive). This command can take a lot of time, perhaps 20 seconds or so.[/color]
    Is[color=blue]
    > the complete PHP engine on this server blocked for this time? If other[/color]
    users[color=blue]
    > call this script (oder other scripts), do they have to wait 20 seconds?
    >
    > bye,
    > Frank
    >
    >[/color]



    Comment

    • Frank Thorstens

      #3
      Re: longtime-exec blocks other requests?

      Hi,
      [color=blue]
      > No, unless you have a web server that can only handle one connection at a
      > time.[/color]

      Ah, ok, i think this is not the case with normal Apache 1.x, right?
      [color=blue]
      > If a session is left open the user who made the request would be blocked,
      > however.[/color]

      Hm, i'm not using sessions but is it possible that the same user is blocked
      during its passthru execution though?

      Thanks for your reply!

      bye,
      Frank


      Comment

      Working...