ModRuby FileUploads thread safe?

Discussion in 'Ruby' started by George Moschovitis, Jun 27, 2003.

  1. Hi there,

    when handling a mulitpart upload, modruby overrides the $stdin
    variable with a stream to read the actual multipart data. Generally
    one can use CGI::QueryExtension.read_multipart to parse this data.

    It seems to me, this use of a global variable is thread-UNSAFE. I am
    using Apache-2.0 + worker-mpm and modruby, ie a threaded environment.
    Isnt this a problem?

    thanks in advance for any help!

    George Moschovitis
     
    George Moschovitis, Jun 27, 2003
    #1
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.