>> Neither of these will be enough. Polipo uses 32-bit values to
>> maintain sizes and offsets in the in-memory cache, you'd need to
>> rework the data structures. Then you'd need to do the same in the
>> on-disk cache.
>> Not difficult, and not a lot of work -- but testing will be painful.
> I can help testing it. It's importent for me :-).
I'll try to implement it when I next have some time for Polipo.
If you want to try yourself, you'll want to start with the following patch:
diff -rN -u old-polipo/client.c new-polipo/client.c
--- old-polipo/client.c 2008-10-24 20:01:37.000000000 +0200
+++ new-polipo/client.c 2008-10-24 20:01:37.000000000 +0200
@@ -1343,6 +1343,7 @@
do_log(L_ERROR, "Couldn't schedule serving.\n");
abortObject(object, 503, internAtom("Couldn't schedule serving"));
}
+
return 1;
}
diff -rN -u old-polipo/object.h new-polipo/object.h
--- old-polipo/object.h 2008-10-24 20:01:37.000000000 +0200
+++ new-polipo/object.h 2008-10-24 20:01:37.000000000 +0200
@@ -56,7 +56,7 @@
unsigned short code;
void *abort_data;
struct _Atom *message;
- int length;
+ off_t length;
time_t date;
time_t age;
time_t expires;
@@ -68,7 +68,7 @@
int s_maxage;
struct _Atom *headers;
struct _Atom *via;
- int size;
+ off_t size;
int numchunks;
ChunkPtr chunks;
void *requestor;
diff -rN -u old-polipo/polipo.h new-polipo/polipo.h
--- old-polipo/polipo.h 2008-10-24 20:01:37.000000000 +0200
+++ new-polipo/polipo.h 2008-10-24 20:01:37.000000000 +0200
@@ -86,7 +86,6 @@
#define HAVE_TM_GMTOFF
#ifndef __UCLIBC__
#define HAVE_TIMEGM
-#define HAVE_FTS
#define HAVE_FFSL
#define HAVE_FFSLL
#endif
Then compile with ``make EXTRA_DEFINES=-D_FILE_OFFSET_BITS=64 -Wconversion'',
and work from the warnings the compiler gives you.
Good luck,
Juliusz
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Polipo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/polipo-users