Menu

#71 ns_form conn delays 30 seconds

aolserver3_4
closed-wont-fix
5
2001-11-25
2001-10-05
No

With 3.4, [ns_conn form] has a 30 second delay
(exactly, every time) when used with a request
submitted as multipart/form-data (file upload).

2.3.3 doesn't have this delay, nor does [ns_getform]
in 3.4

Discussion

  • Jim Wilcoxson

    Jim Wilcoxson - 2001-10-18

    Logged In: YES
    user_id=291997

    I should have mentioned that to duplicate this, you use
    ns_getform first on the connection, then use ns_conn form.
    After looking at the code, my theory is that ns_getform
    doesn't set the state variables that [ns_conn form] is
    looking for, so the call to [ns_conn form] calls
    Ns_ConnGetQuery and eventually tries to read the POST data
    from the connection. But it has already been read by
    ns_getform, so after a 30 second socket timeout, it
    returns.

    Suggested fixes might be to put ns_getform in conn.c or put
    helper functions in conn.c that ns_getform can call to set
    state vars.

     
  • Jim Davidson

    Jim Davidson - 2001-11-25

    Logged In: YES
    user_id=20624

    New connection I/O model in 4.0 isn't subject to this
    read-ahead problem. Would be difficult to work around
    problem in 3.x.

     
  • Jim Davidson

    Jim Davidson - 2001-11-25
    • assigned_to: nobody --> jgdavidson
    • status: open --> closed-wont-fix
     

Log in to post a comment.