Re: How to break the httpd's 4G file size limit?

2009-03-21 Thread Henning Brauer
* Alexey Suslikov [2009-03-11 16:38]: > The limitation is 2Gb on 32-bit platforms because of off_t (man lseek). off_t is 64bit on all platforms we support. even vax. -- Henning Brauer, h...@bsws.de, henn...@openbsd.org BS Web Services, http://bsws.de Full-Service ISP - Secure Hosting, Mail and

Re: How to break the httpd's 4G file size limit?

2009-03-16 Thread frantisek holop
hmm, on Wed, Mar 11, 2009 at 03:34:30AM +0800, John Wong said that > I want to set up the web server to share file, but i know apache-1.3.x > (which is openbsd default httpd) had the 4G file size limit, can i break > this limit? i dont remember such a limit, but i could be wrong. but i definitely

Re: How to break the httpd's 4G file size limit?

2009-03-11 Thread Ted Unangst
On Wed, Mar 11, 2009 at 1:21 PM, Alexey Suslikov wrote: > I can't recall exact code from httpd, but how about libexec/ftpd: > > ... > extern off_t restart_point; > ... you're looking at the wrong code. ftpcmd.y: restart_point = $4; /* XXX $4 is only "int" */

Re: How to break the httpd's 4G file size limit?

2009-03-11 Thread Alexey Suslikov
On Wed, Mar 11, 2009 at 19:11, Ted Unangst wrote: > On Wed, Mar 11, 2009 at 12:01 PM, Alexey Suslikov > wrote: >> On Wed, Mar 11, 2009 at 17:56, Ted Unangst wrote: >>> If using a 64-bit machine fixes it, then the type in question is not off_t. >>> >> >> Maybe you should try to transfer (using st

Re: How to break the httpd's 4G file size limit?

2009-03-11 Thread Ted Unangst
On Wed, Mar 11, 2009 at 12:01 PM, Alexey Suslikov wrote: > On Wed, Mar 11, 2009 at 17:56, Ted Unangst wrote: >> If using a 64-bit machine fixes it, then the type in question is not off_t. >> > > Maybe you should try to transfer (using stock httpd) at least 3Gb file > on i386? I didn't say it was

Re: How to break the httpd's 4G file size limit?

2009-03-11 Thread Otto Moerbeek
On Wed, Mar 11, 2009 at 06:48:49PM +0300, Alexander Yurchenko wrote: > On Wed, Mar 11, 2009 at 05:37:14PM +0200, Alexey Suslikov wrote: > > The limitation is 2Gb on 32-bit platforms because of off_t (man lseek). > > huh? > > [gra...@nohead tmp]$ cat x.c > #include > #include > > int main(vo

Re: How to break the httpd's 4G file size limit?

2009-03-11 Thread Alexey Suslikov
On Wed, Mar 11, 2009 at 17:56, Ted Unangst wrote: > On Wed, Mar 11, 2009 at 11:37 AM, Alexey Suslikov > wrote: >> The limitation is 2Gb on 32-bit platforms because of off_t (man lseek). > > off_t is always 64-bit. > >> Stock ftpd also has mentioned limitation (try to REST a file beyond 2Gb >> off

Re: How to break the httpd's 4G file size limit?

2009-03-11 Thread Ted Unangst
On Wed, Mar 11, 2009 at 11:37 AM, Alexey Suslikov wrote: > The limitation is 2Gb on 32-bit platforms because of off_t (man lseek). off_t is always 64-bit. > Stock ftpd also has mentioned limitation (try to REST a file beyond 2Gb > offset). > > Using any 64-bit platform will solve the problem due

Re: How to break the httpd's 4G file size limit?

2009-03-11 Thread Otto Moerbeek
On Wed, Mar 11, 2009 at 05:37:14PM +0200, Alexey Suslikov wrote: > Daniel A. Ramaley wrote: > > > On 2009-03-10 at 14:34:30, you wrote: > > >I want to set up the web server to share file, but i know apache-1.3.x > > >(which is openbsd default httpd) had the 4G file size limit, can i > > > break t

Re: How to break the httpd's 4G file size limit?

2009-03-11 Thread Alexander Yurchenko
On Wed, Mar 11, 2009 at 05:37:14PM +0200, Alexey Suslikov wrote: > The limitation is 2Gb on 32-bit platforms because of off_t (man lseek). huh? [gra...@nohead tmp]$ cat x.c #include #include int main(void) { printf("size of off_t is %u bits\n", 8 * sizeof(off_t)); } [gra...@nohead tm

Re: How to break the httpd's 4G file size limit?

2009-03-11 Thread Alexey Suslikov
Daniel A. Ramaley wrote: > On 2009-03-10 at 14:34:30, you wrote: > >I want to set up the web server to share file, but i know apache-1.3.x > >(which is openbsd default httpd) had the 4G file size limit, can i > > break this limit? > > I don't know the correct answer to this question, but i thought

Re: How to break the httpd's 4G file size limit?

2009-03-11 Thread Daniel A. Ramaley
On 2009-03-10 at 14:34:30, you wrote: >I want to set up the web server to share file, but i know apache-1.3.x >(which is openbsd default httpd) had the 4G file size limit, can i > break this limit? I don't know the correct answer to this question, but i thought of a possible work-around in the ev

How to break the httpd's 4G file size limit?

2009-03-10 Thread John Wong
I want to set up the web server to share file, but i know apache-1.3.x (which is openbsd default httpd) had the 4G file size limit, can i break this limit? Thank you.