Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: large file uploads - timeout

by emilford (Friar)
on Mar 22, 2003 at 17:45 UTC ( #245183=note: print w/replies, xml ) Need Help??


in reply to large file uploads - timeout

BTW, here is the error message that I get:

Could not open the page ?http://abcd.com/internal/cgi-bin/upload.cgi? after trying for 60 seconds.

Replies are listed 'Best First'.
Re: Re: large file uploads - timeout
by dakkar (Hermit) on Mar 22, 2003 at 18:01 UTC

    Are you using Safari as your browser? (the form of the error message seems to imply so)

    I'd say to try with another browser. Say, lynx from the command line, or IE, or somesuch.

    It could be (warning: WAG) that Safari is starting its timeout timer before having sent the whole file, and that more than 60 secs are needed to transfer that big a file.

    Try with another browser, to get a different timeout detection, or from a machine on the same LAN as the server, to get a faster transfer.

    WAG: Wild Assed Guess...

    -- 
            dakkar - Mobilis in mobile
    
      Yeah, I am using Safari as my browser. I just tried it with IE (Mac 5.2) and it worked with no problem. It took a while to execute, but never crashed and the file is uploaded on my server. Is there anything I can do? I'd like the script to work with the majority of browsers, but if it's a local timeout setting that is causing the problem, I'm not sure if there is a solution.

        Keep in mind that Safari is still in beta. Report the bug to Apple, and wait for the final release. The solution is theirs to find.

        It's commendable that you are trying to make your script work with all browsers, but such a bug is just out of you control.

        -- 
                dakkar - Mobilis in mobile
        
        Is there anything I can do?
        Yes, you can detect the broken browser, and inform the user to get a better one (see HTTP::BrowserDetect).
        I'd like the script to work with the majority of browsers...
        It already does. The majority of browsers correctly implement the HTTP/CGI protocols, and as such, work. Only these can be called browsers. The others, like Safari, are broken-browsers, so they have no hope of working.
Re: Re: large file uploads - timeout
by Jenda (Abbot) on Mar 22, 2003 at 17:52 UTC

    Is there any chance your web server is set to kill the CGIs if they run for more than 60s? If so you'll probably have to increase the limit.

    Jenda
    Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.
       -- Rick Osborne

    Edit by castaway: Closed small tag in signature

      I don't think the problem is on the server side, but rather a local issue. Besides, I unfortunately have no control over server settings.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://245183]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2022-08-17 04:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?