2886 Commits

Author SHA1 Message Date
dbaron%fas.harvard.edu
7b468bb07f Fix server name not showing up in status bar for FTP connections. b=66682 r=dougt@netscape.com sr=mscott@netscape.com 2001-03-06 03:32:07 +00:00
beard%netscape.com
f5f96b7833 [not part of build] Increased number of downloads/reads to 50, added median(). 2001-03-06 03:29:08 +00:00
gordon%netscape.com
a73e430dc1 [not part of build]
Fix race condition in nsCacheRequest WaitForValidation().

Force !streamBased to set storagePolicy to nsICache:STORE_IN_MEMORY when creating nsCacheSessions.

Fix ProcessRequest() to refrain from creating a descriptor for ACCESS_READ requests when no entry is found (found by pavlov).
2001-03-06 03:26:13 +00:00
dbaron%fas.harvard.edu
83bbffbccd Add pref to REQUIRES to fix MOZ_TRACK_MODULE_DEPS (senna tinderbox) bustage. 2001-03-06 03:24:57 +00:00
darin%netscape.com
1cad1d36cc [not part of the build] Prevent crash in error case. 2001-03-06 03:12:24 +00:00
dougt%netscape.com
877f3dd664 Fixing windows bustage. 2001-03-06 02:21:37 +00:00
dougt%netscape.com
8d2069dfd9 Adding nsIndexToHTML. 2001-03-06 02:14:59 +00:00
dougt%netscape.com
80614d95ae Fixes 64795 - Allows viewing FTP without the treewidget. r=valeski@netscape.com, sr=waterson@netscape.com 2001-03-06 02:14:42 +00:00
beard%netscape.com
af28bdfda7 [not part of build] create the cache directory if it doesn't exist already. 2001-03-06 02:10:18 +00:00
darin%netscape.com
ff8da66438 [not part of the build] Fixes sync OpenCacheEntry bustage. 2001-03-06 01:40:20 +00:00
dougt%netscape.com
2c3940a081 Fixes 68483 as well as fixes some mem leaks cause by canceling a request. r=darin@netscape.com, sr=waterson@netscape.com 2001-03-06 01:27:54 +00:00
darin%netscape.com
74a90e7466 [not part of the bulid] Fixes GCC 2.95 bustage. 2001-03-05 23:50:26 +00:00
beard%netscape.com
014a82adb3 [not part of build] Initial cache performance test. 2001-03-05 15:23:59 +00:00
gordon%netscape.com
bcb5168522 [not part of build]
Added conditional deletion of mLock and mCondVar to nsCacheRequest destructor.

Added nsCacheServide::NotifyListener() to called cache clients' OnDescriptorAvailable() method for AsyncOpenCacheEntry().

Added ProcessPendingRequests() to process requests on CloseDescriptor, ValidateEntry, and DoomEntry.

Rough cut of AsyncOpenCacheEntry is in place, but needs testing.
2001-03-05 10:45:33 +00:00
gordon%netscape.com
ade5e1533b [not part of build]
Restructured open cache entry code in preparation for async implementation, to better share code with synchronous version.

Changed nsCacheRequest, nsCacheEntry, nsCacheEntryDescriptor to inherit from PRCList rather than include mListLink member, and removed extraneous GetListNode/GetInstance methods.

Consolidated mAccessRequested, mStreamBased, and mStoragePolicy into a single PRUint32 in nsCacheRequest.  Added PRLock, PRCondVar, and a 'wait for validation' flag, used for synchronously opening cache entries.  Added accessor functions for these "attributes".

Record current event queue for asychronous requests to be used with GetProxyForObject().  Removed mRequestThread.
2001-03-05 07:17:58 +00:00
beard%netscape.com
853f3c4945 Release mCacheEntry in nsFtpState::StopProcessing() rather than when reallocated in nsFtpState::Connect(). This causes the cache entry to closed sooner only when MOZ_NEW_CACHE is defined. r=dougt, sr=gagan 2001-03-05 03:50:14 +00:00
beard%netscape.com
c6a0b479f4 Since file streams can't be non-blocking, return that fact from nsFileOutputStream::GetNonBlocking(). r=dougt, sr=gagan 2001-03-05 03:43:33 +00:00
beard%netscape.com
1d2a7021a0 Fix bug where overridden Close() doesn't get called in base class destructor. r=dougt, sr=gagan 2001-03-05 03:42:24 +00:00
beard%netscape.com
79bcc81294 Delegate GetNonBlocking/SetNonBlocking to wrapped output stream. r=dougt, sr=gagan 2001-03-05 03:40:41 +00:00
pavlov%netscape.com
14f46fb876 [NOT PART OF BUILD!@#!@#] changing line ending of makefile so it works on windows r=gordon 2001-03-04 20:57:33 +00:00
beard%netscape.com
d272ef683d [not part of build] fix bustage (LL_ZERO is not compatible with PRUint32 type). 2001-03-04 19:27:39 +00:00
gordon%netscape.com
14f776650c [not part of build] Changed nsCacheEntry data members from PRTime to PRUint32. Changed //** comments to // XXX to make it easier to search for 'to do' items. Added dooming of expired entries. 2001-03-04 00:11:30 +00:00
gordon%netscape.com
c281374138 [not part of build] Make MarkDoomed(), MarkActive(), MarkInactive() private, and check for entry before calling MarkInitialized() in nsCacheService::ActivateEntry(). 2001-03-03 04:42:21 +00:00
beard%netscape.com
fdf5adb8eb [not part of build] removed memory transport files. 2001-03-03 03:42:57 +00:00
beard%netscape.com
3cc7487ec6 [not part of build] Added debug harness, explicit doom. 2001-03-03 03:42:10 +00:00
beard%netscape.com
6388744e26 [not part of build] dooming works during forced write, and explicitly, see TestDiskCache.js for example. 2001-03-03 03:41:38 +00:00
darin%netscape.com
9460ba088d OS/2 didn't like inheriting a nsStorageTransport::ns{In,Out}putStream from
nsStorageTransport::nsBlockingStream since both are declared with private
access in nsStorageTransport.  This should fix the problem.
2001-03-03 03:07:10 +00:00
gordon%netscape.com
124ac630d9 [not part of build] Restructured nsCacheService:ActivateEntry() to properly handle a FORCE-WRITE. Cleaned up ownership of key between request and entry. Add deletion of request for synchronous open. Add deletion of unbound entries on deactivation. 2001-03-03 02:27:49 +00:00
darin%netscape.com
94f3bb4242 [not part of the build] updated the module file for the removal of nsMemoryCacheTransport 2001-03-03 02:27:18 +00:00
beard%netscape.com
57cbe6c774 Added nsStorageTransport.cpp. r=gordon 2001-03-03 02:21:37 +00:00
darin%netscape.com
6b4d563f98 Bug 70707. Added CID/ContractID for nsStorageTransport. 2001-03-03 02:11:19 +00:00
darin%netscape.com
0bbec193ce [not part of the build] Make mem cache use nsStorageTransport. 2001-03-03 01:59:03 +00:00
darin%netscape.com
5b7fd2451c Bug 70707. Pulled generic transport implementation out of new memory cache
and created netwerk/base/src/nsStorageTransport.{h,cpp}
2001-03-03 01:57:37 +00:00
dougt%netscape.com
61a6206885 This is not part of the build (it is currently IFDEF'ed off. Conditionally allows ftp to use the new cache. r=gagan@netscape.com 2001-03-03 01:40:36 +00:00
valeski%netscape.com
b7b9777ef9 sr=rpotts. 61160. allowing buffering if we haven't started a sub response yet. 2001-03-03 00:59:42 +00:00
beard%netscape.com
19ae2d545a [not part of build] removed dirty flag from DiskCacheEntry, added key comparision to readDiskCacheEntry(). 2001-03-03 00:35:33 +00:00
gordon%netscape.com
55421ff15e [not part of build] REALLY fix nsCacheEntryHashTable::RemoveEntry. This time for sure! 2001-03-03 00:00:29 +00:00
gordon%netscape.com
e8fffddcf2 [not part of build] Fix nsCacheEntryHashTable::RemoveEntry(). r=beard. 2001-03-02 23:50:53 +00:00
darin%netscape.com
239a60c682 [not part of the build] Added implementation of nsMemoryCacheReadRequest::Available 2001-03-02 22:28:38 +00:00
beard%netscape.com
af49e27bcf [not part of build] slight optimization, check for cache file existence before creating an entry and attempting to open a transport for it. 2001-03-02 20:14:41 +00:00
beard%netscape.com
88c1e43a65 [not part of build] need a way to transfer ownership of key from request to entry. for now just leak and dont' crash. 2001-03-02 20:04:08 +00:00
disttsc%bart.nl
277181c660 Preparation of removing nsCString::GetBuffer. Landing everything but the actual commenting out of nsCString::GetBuffer. bug=64016, r=timeless, sr=scc 2001-03-02 09:26:57 +00:00
beard%netscape.com
e14f9a7fdc [not part of build] Added metadata test. 2001-03-02 05:00:34 +00:00
beard%netscape.com
599f805e95 [not part of build] took out unnecessary OpenTransport libraries. 2001-03-02 04:57:42 +00:00
beard%netscape.com
dfc91d59d9 Now reading/writing all metadata into disk cache. 2001-03-02 04:57:09 +00:00
beard%netscape.com
3a40fad954 [not part of build] Added CalculateSize() to account for null termination of strings. 2001-03-02 04:54:27 +00:00
beard%netscape.com
f2eaa4cceb [not part of build] Added FlattenMetaData()/UnflattenMetaData(). 2001-03-02 04:09:01 +00:00
gordon%netscape.com
94a9fab0c0 Fix casing of SetMetaDataElement method. 2001-03-02 01:52:29 +00:00
gordon%netscape.com
b3ae735e46 [not part of build]
Fixed cache meta data. Implemented eviction list for memory cache device. Worked on entry deactivation, validation, and doom.
2001-03-02 01:51:41 +00:00
dougt%netscape.com
ac8a00dcc3 not part of build. we should init the cache meta data. 2001-03-01 21:27:11 +00:00