608 Commits

Author SHA1 Message Date
neeti%netscape.com
5ac74fafb2 fix for rtm++ bug 54630 - Disk cache not writing files after 512 files reached. r=dp, sr=rpotts
git-svn-id: svn://10.0.0.236/trunk@81103 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-13 03:01:10 +00:00
neeti%netscape.com
cc003f2e71 fix for bug 54072,r=dp, sr=rpotts/mscott
git-svn-id: svn://10.0.0.236/trunk@80892 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-11 03:03:40 +00:00
dp%netscape.com
83a4fbdae8 bug 54470 Deleting orphaned entries (no record associated with them)
rather than holding them forever in memory on evict.
r=neeti sr=rpotts
(updating fix from branch 1.29.4.2 to tip)


git-svn-id: svn://10.0.0.236/trunk@80278 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-03 22:54:55 +00:00
dp%netscape.com
dde0954f7d bug 54470 Deleting orphaned entries (no record associated with them)
rather than holding them forever in memory on evict.
r=neeti sr=rpotts
(updating fix from branch 1.28.2.2 to tip)


git-svn-id: svn://10.0.0.236/trunk@80275 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-03 22:04:15 +00:00
rpotts%netscape.com
a51405cbc5 bug #41398. The cache manager is now a memory-pressure observer and flushed the memory cache on each notification.
git-svn-id: svn://10.0.0.236/trunk@80189 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-30 05:30:22 +00:00
rpotts%netscape.com
fb69d93bc3 when RemoveAll() is called do not double count the storage being freed...
git-svn-id: svn://10.0.0.236/trunk@80095 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-28 23:03:03 +00:00
neeti%netscape.com
54302036e0 fix for crasher nsbeta3++ bug 52818, r=dp, r/a=rpotts
git-svn-id: svn://10.0.0.236/trunk@80050 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-28 04:08:22 +00:00
neeti%netscape.com
f9d6a6c4f8 fix for bug 51095- mStorageInUse grows faster than required if we update files.r=dp,a=mscott
git-svn-id: svn://10.0.0.236/trunk@79828 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-22 04:17:22 +00:00
rpotts%netscape.com
d56d04d162 bug #53273 (r=neeti,fur a=me).Clear the TRUNCATED_CONTENT flag when all of the data arrives for a URI. This handles the case where the entry was evicted (and the content was truncated) and is later reused...
git-svn-id: svn://10.0.0.236/trunk@79826 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-22 04:12:42 +00:00
bryner%uiuc.edu
a8190e5a7a Fixing bustage.
git-svn-id: svn://10.0.0.236/trunk@79360 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-15 20:46:06 +00:00
neeti%netscape.com
7c1ad399fa Fix for bug 48401.
Number of entries and records limited to 512. All known evict situations fixed.
Causing evict to start happening.
r=dp


git-svn-id: svn://10.0.0.236/trunk@79149 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-14 19:12:03 +00:00
dp%netscape.com
730a9d4365 - Fixing deletion of cache on version change
- DBRecovery(): removing all fancy moves to trash folder. Just delete
  the cache when it is corrupted.
r=neeti


git-svn-id: svn://10.0.0.236/trunk@79140 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-14 18:48:57 +00:00
dp%netscape.com
0c1220afaa Bumping cache version number up so everyone's corrupted caches uptil
now will be automatically deleted. r=neeti


git-svn-id: svn://10.0.0.236/trunk@79139 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-14 18:47:30 +00:00
dp%netscape.com
c78f8f34bd bug 46147 Ignoring record get failures to accomodate uncommited new
entries r=gagan,neeti


git-svn-id: svn://10.0.0.236/trunk@79131 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-14 13:51:18 +00:00
dp%netscape.com
37a7afe1b7 bug 46147 nsDiskCacheRecord::Delete() can ignore file delete errors as
for the file might not exist. r=gagan,neeti


git-svn-id: svn://10.0.0.236/trunk@79130 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-14 13:49:07 +00:00
rayw%netscape.com
d9228441a4 Bug 37275, Changing value of all progids, and changing everywhere a progid
is mentioned to mention a contractid, including in identifiers.

r=warren


git-svn-id: svn://10.0.0.236/trunk@79036 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-13 23:57:52 +00:00
rpotts%netscape.com
2273759b2d Keep the cache size correct when deleting cache entries.
git-svn-id: svn://10.0.0.236/trunk@78976 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-13 06:05:06 +00:00
neeti%netscape.com
a48f9debee fix for bug 50977-After surfing, web pages stop loading. Tossing cache fixes,r=dp
git-svn-id: svn://10.0.0.236/trunk@78743 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-11 19:00:40 +00:00
rpotts%netscape.com
35bb809725 Do not crash when calling GetNExtCache() if the Disk Cache is not available...
git-svn-id: svn://10.0.0.236/trunk@78666 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-10 08:11:40 +00:00
rpotts%netscape.com
d23bed6d85 Fixed memory leak when calling nsCachedNetData::GetUriSpec(...).
git-svn-id: svn://10.0.0.236/trunk@78664 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-10 07:58:27 +00:00
rpotts%netscape.com
0d2ead8de2 Cleaned up the cache selection code in GetCacheAndReplacementPolicy(...).
git-svn-id: svn://10.0.0.236/trunk@78658 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-10 06:13:30 +00:00
rpotts%netscape.com
f8c76b5a65 do not try to evict cache entries that are active...
git-svn-id: svn://10.0.0.236/trunk@78657 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-10 06:11:57 +00:00
rpotts%netscape.com
0da87f562b Random improvements to the memory cache...
git-svn-id: svn://10.0.0.236/trunk@78656 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-10 06:10:52 +00:00
mscott%netscape.com
9b2caee4b9 Bug #43556 --> remove obsolete reference to old class id for the mime service. use the new one.
r=valeski


git-svn-id: svn://10.0.0.236/trunk@78452 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-08 00:24:13 +00:00
dp%netscape.com
824bd3c2fa Fixing mac. No more friends. Making WriteComplete() public. That is
actually what we really want.


git-svn-id: svn://10.0.0.236/trunk@78180 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-05 22:32:00 +00:00
dp%netscape.com
187a9be221 bug 50922 mFile's stat cache isnt refreshed after file changed on
disk. This causes wrong content length and incorrect cache
updates. r=neeti


git-svn-id: svn://10.0.0.236/trunk@78172 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-05 21:42:10 +00:00
scc%mozilla.org
efebf707a1 fixing code that relied on implicit string construction
git-svn-id: svn://10.0.0.236/trunk@78031 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-02 21:47:30 +00:00
cls%seawood.org
8848fa61a5 Including nsString.h
git-svn-id: svn://10.0.0.236/trunk@77962 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-02 00:21:03 +00:00
alecf%netscape.com
100dab2e8d another fix for #42102 - removing consumers of nsIFileSpec
r=valeski


git-svn-id: svn://10.0.0.236/trunk@77959 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-01 23:36:28 +00:00
gordon%netscape.com
1fdbf5a0c1 Fix for Bug 31900 "[MLK] Leaking CacheInfo objects".
The mCaches field is the head of a linked list.  I've added code to nsReplacementPolicy destructor to walk the list, deleting the objects along the way, rather than simply deleting the head of the list.


git-svn-id: svn://10.0.0.236/trunk@77920 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-01 21:24:40 +00:00
dp%netscape.com
c4f5139c2f bug 41950 Preventing garbage content lengths from cache. r=neeti
git-svn-id: svn://10.0.0.236/trunk@77446 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-29 03:14:28 +00:00
neeti%netscape.com
00589ce8f2 applying Waterson's patch to bug 49108. r=neeti
git-svn-id: svn://10.0.0.236/trunk@77357 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-28 13:44:12 +00:00
rpotts%netscape.com
cbb475cc52 bug #48546. Implement Get/SetLoadAttributes(...)
git-svn-id: svn://10.0.0.236/trunk@77128 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-24 22:56:41 +00:00
rpotts%netscape.com
3a6bfa541f bug #48546. The cache channel should delegate the handling of load attributes to the cache channel (ie. disk/memory channel)...
git-svn-id: svn://10.0.0.236/trunk@77127 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-24 22:54:45 +00:00
warren%netscape.com
f29b00bbe4 Bug 46777. Redesigned stream interfaces to allows stream observers to be decoupled from pipe implementation. Needed for embedding to fix 'spin' problem. r=rpotts,valeski,ruslan
git-svn-id: svn://10.0.0.236/trunk@76875 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-22 07:03:33 +00:00
valeski%netscape.com
0fdf4dec71 49360. removing core cache module from the build on unix. this was missed a few months ago when we started building the cache stuff into netwerk/build
git-svn-id: svn://10.0.0.236/trunk@76783 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-21 19:07:49 +00:00
warren%netscape.com
4d62e29749 Bug 46864 - Embedding needs a name attribute on nsIRequest.
git-svn-id: svn://10.0.0.236/trunk@76772 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-21 08:23:54 +00:00
warren%netscape.com
4afc13fbcb Added back in nsOpaqueKey, used in nsMemCache. Went back to 37 as the magic number (prime).
git-svn-id: svn://10.0.0.236/trunk@76768 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-21 02:37:20 +00:00
ruslan%netscape.com
2d3c31f3be Fix 47408, a=gagan,r=neeti
git-svn-id: svn://10.0.0.236/trunk@76147 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 21:31:13 +00:00
warren%netscape.com
e5706a7236 Bug 46711. Removed nsAutoString travisty from nsStringKey. Introduced nsCStringKey. Made them both share the underlying string when possible. r=waterson
git-svn-id: svn://10.0.0.236/trunk@75975 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 06:19:37 +00:00
valeski%netscape.com
0d1eca8726 38260. removing shadowed rv declaration, and xpfe #include dependency
git-svn-id: svn://10.0.0.236/trunk@75808 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 21:43:47 +00:00
mkaply%us.ibm.com
cc1c8681d5 #47881
r=valeski, a=brendan
OS/2 tinderbox break - we need to link mozdbm


git-svn-id: svn://10.0.0.236/trunk@75799 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 21:05:59 +00:00
valeski%netscape.com
9d6dbf3718 47881, r=dougt. removing extraneous static link of dbm lib, and fixing the file cache so it does the static link
git-svn-id: svn://10.0.0.236/trunk@75740 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 00:20:23 +00:00
neeti%netscape.com
f375211dd9 fix for bug 40084, [CRASH] Crash in disk cache code, backed out changes made on 7/27, put new fix
fix for bug 46014, No keywords loaded on bugzilla pages, r/a=gagan


git-svn-id: svn://10.0.0.236/trunk@75139 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-29 02:32:14 +00:00
neeti%netscape.com
91d835a058 fix for bug 40084 - [CRASH] Crash in disk cache code, r/a=gagan
git-svn-id: svn://10.0.0.236/trunk@74916 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-27 14:28:48 +00:00
warren%netscape.com
997161d193 Factored string bundles out of necko. Fixes bug 42107 - need to fix string bundle init workaround. Also bug 40506 - nsIWebProgressListener needs status text. Status messages now work in mozilla and viewer with internationalized and parameterized text! Added temporary error architecture until bug 13423 can be fixed. Extended nsIStringBundleService to provide method to format status message. r=valeski,jband,tao. verified=mstoltz
git-svn-id: svn://10.0.0.236/trunk@74729 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-25 05:45:56 +00:00
neeti%netscape.com
654207280e Fix for bug 38244 - modified files cached incorrectly,r=ruslan@netscape.com
git-svn-id: svn://10.0.0.236/trunk@74577 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-21 04:33:26 +00:00
dougt%netscape.com
db2c70c95b bug 40750.
Adding followSymlink flag to nsILocalFile.
Adjusting callers.
windows shortcut optimizations.
r=blizzard@mozilla.org.
a=brendan@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@74127 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 23:31:31 +00:00
warren%netscape.com
e705a0a4d7 Fixed comment
git-svn-id: svn://10.0.0.236/trunk@73858 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-07 23:43:00 +00:00
ruslan%netscape.com
9d5c85f6e4 Fix 42377 - make http SetNotificationCallbacks go through the proxy object, thus
avoiding crashers when OpenInputStream is used, a=gagan,warren


git-svn-id: svn://10.0.0.236/trunk@73701 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-05 22:57:50 +00:00