Further file upload limits and content-length issues in mod_python.
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Apache Mod-Python > Further file upload limits and content-length issues in mod_python.




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Further file upload limits and content-length issues in mod_python.  
Barry Pearce


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-19-05 07:45 AM

Hi all,

Well I have been ivestigating things further - It looks like my last set
of changes got us to 2GB as a content-length. However this seems to be
where it stops....namely i have noticed that this appears to be because
of faults in the code which restricts content length to 32bit.

To start:

util.py ~ line 112 should not use int() to convert in Python but should
use long():

try:
clen = long(req.headers_in["content-length"])
except (KeyError, ValueError):
# absent content-length is not acceptable
raise apache.SERVER_RETURN, apache.HTTP_LENGTH_REQUIRED

This appears to be the only problem here. Any content > 2GB results in
BAD_REQUEST being sent to the client. The faults appear to reside in the
C code which constantly declare size for content-length using long
rather than something more appropriate such as 'long long'.

Im now investigating further...






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 05:32 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register