×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Jun 2007
    Posts
    17

    Is there a 16k limit in the apache:mod2 impl ?

    Hi !

    I've tried to port a lua module to apache on symbian, it works but...
    When a resulting document reaches size over ~16k it will be truncated.

    According to my debugging all data is sent to ap_rwrite(str, len, request );

    I have also tried to devide the data into smaller chunks within the same request with the same result.

    I think the problem is in the apach mod, because if I get static documents or images through the connector-apache it works fine.

    /Mikael

  2. #2
    Nokia Developer Expert
    Join Date
    Mar 2003
    Posts
    457

    Re: Is there a 16k limit in the apache:mod2 impl ?

    Quote Originally Posted by MikaelWT View Post
    I've tried to port a lua module to apache on symbian, it works but...
    When a resulting document reaches size over ~16k it will be truncated.
    Which version are you using?

    Johan

  3. #3
    Registered User
    Join Date
    Jun 2007
    Posts
    17

    Re: Is there a 16k limit in the apache:mod2 impl ?

    I'm using the OpenC version that you released, I use the binaries, not my own build

    One thing I noticed is that in the Access log the size is about right.

    /Mikael

  4. #4
    Nokia Developer Expert
    Join Date
    Mar 2003
    Posts
    457

    Re: Is there a 16k limit in the apache:mod2 impl ?

    Quote Originally Posted by MikaelWT View Post
    I'm using the OpenC version that you released, I use the binaries, not my own build
    Ok, in that case there's most likely no fault in your code.

    Namely, there's a problem when writing data to non-blocking sockets. Even if all data has not been sent, the return value indicates that is has, which then leads to truncation. This problem existed in the earlier libc as well and there the workaround was to always use blocking I/O. I incorrectly assumed this had been fixed in OpenC but apparently it hadn't.

    I have an OpenC version that uses blocking I/O but I havn't released it, as there are some other issues that are holding me back. If this is a big showstopper for you, please contact me directly and I'll see what I can do.

    Johan

  5. #5
    Registered User
    Join Date
    Jun 2007
    Posts
    17

    Re: Is there a 16k limit in the apache:mod2 impl ?

    No, this is not a showstopper form me, I doing a conceptual demo and I can manage so the the files are way under this 16k, (with good margin). But one other thing that would lift the preformance of the demo is if you could brows to localhost, any news about if that is going to happen ?

    /Mikael

  6. #6
    Nokia Developer Expert
    Join Date
    Mar 2003
    Posts
    457

    Re: Is there a 16k limit in the apache:mod2 impl ?

    Quote Originally Posted by MikaelWT View Post
    But one other thing that would lift the preformance of the demo is if you could brows to localhost, any news about if that is going to happen ?
    Not being able to browse to localhost is caused by a known bug in Open-C. I havn't bothered figuring out a workaround as it'll go away once a new version of Open-C is released.

    Johan

Similar Threads

  1. HTTP Response content length limit
    By jp4symbian in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2007-01-01, 14:22
  2. Size limit of a single RMS record ?
    By civax in forum Mobile Java General
    Replies: 0
    Last Post: 2005-12-27, 12:55
  3. A Different Jar Size Limit Problem
    By cicdem in forum Mobile Java General
    Replies: 0
    Last Post: 2004-06-17, 15:01
  4. Series 40: Persistent Storage Limit per Midlet Suite?
    By pqp6 in forum Mobile Java General
    Replies: 2
    Last Post: 2003-05-12, 05:22
  5. Why is there a midlet upper size limit?
    By gwhistance in forum Mobile Java General
    Replies: 4
    Last Post: 2002-10-25, 21:04

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •