35 Commits

Author SHA1 Message Date
darin%netscape.com
9d03c579d0 Necko API changes, bug 74221. r=valeski, sr=rpotts.
git-svn-id: svn://10.0.0.236/trunk@91842 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-10 06:01:08 +00:00
dougt%netscape.com
175245e2de Relanding Necko Changes.
Revising nsIChannel to allow for overlapped i/o. This consists of three parts:

1. Factoring nsIChannel into a protocol specific part, the nsIChannel, and a socket specific, the nsITransport.
2. Derive the nsIChannel from a nsIRequest.
2. Changes the notification system from necko and the URILoader to pass the nsIRequest interface instead of nsIChannel interface.

This goal stems from wanting to be able to have active AsyncRead and AsyncWrite operations on nsSocketTransport.
This is desired because it would greatly simplify the task of maintaining persistent/reusable socket connections
for FTP, HTTP, and Imap (and potentially other protocols). The problem with the existing nsIChannel interface is
that it does not allow one to selectively suspend just one of the read or write operations while keeping the other active.

r=darin@netscape.com
sr=rpotts@netscape.com


git-svn-id: svn://10.0.0.236/trunk@87587 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-21 20:38:08 +00:00
disttsc%bart.nl
03f69c5003 Back out dougt's channel changes
git-svn-id: svn://10.0.0.236/trunk@86793 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-12 03:14:23 +00:00
dougt%netscape.com
7af79c83df Revising nsIChannel to allow for overlapped i/o. This consists of three parts:
1. Factoring nsIChannel into a protocol specific part, the nsIChannel, and a socket specific, the nsITransport.
2. Derive the nsIChannel from a nsIRequest.
2. Changes the notification system from necko and the URILoader to pass the nsIRequest interface instead of nsIChannel interface.

This goal stems from wanting to be able to have active AsyncRead and AsyncWrite operations on nsSocketTransport.
This is desired because it would greatly simplify the task of maintaining persistent/reusable socket connections
for FTP, HTTP, and Imap (and potentially other protocols).  The problem with the existing nsIChannel interface is
that it does not allow one to selectively suspend just one of the read or write operations while keeping the other active.

The full details of the change on written up in the netlib newsgroup.

r=darin@netscape.com
sr=rpotts@netscape.com


git-svn-id: svn://10.0.0.236/trunk@86717 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-10 00:16:26 +00:00
vidur%netscape.com
65d3ffed0d Implementation of ReadSegments to support less copying in the parser. r=rpotts, sr=jst
git-svn-id: svn://10.0.0.236/trunk@83551 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-12 21:57:47 +00:00
dbaron%fas.harvard.edu
d307ff6be5 Fix refcount logging for nsCachedNetData objects so they don't appear to leak by indicating a refcount of 0 (for deletion) when the RECYCLED flag is set or when the arena is destroyed. r=rpotts@netscape.com sr=scc@mozilla.org b=31367
git-svn-id: svn://10.0.0.236/trunk@81986 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-29 21:24:39 +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
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
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
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
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
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
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
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
rusty.lynch%intel.com
d32014ccc6 David Baron's patch to fix bug #41172. r=waterson
git-svn-id: svn://10.0.0.236/trunk@73247 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-26 21:03:19 +00:00
warren%netscape.com
cc5d426fbe Renaming nsIAllocator to nsIMemory (and nsAllocator to nsMemory). API cleanup/freeze. Bug #18433
git-svn-id: svn://10.0.0.236/trunk@71450 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-03 09:46:12 +00:00
davidm%netscape.com
bd38c5e43e 37071 Crash while downloading anything
37353    browser segfaults on page loading


git-svn-id: svn://10.0.0.236/trunk@68569 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-07 05:38:02 +00:00
davidm%netscape.com
c02dd57263 28412 metaDataLength is wrong in nsCachedNetData::Deserialize
Update streamasfile interface to be a file rather than filename.


git-svn-id: svn://10.0.0.236/trunk@66418 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 04:55:57 +00:00
ruslan%netscape.com
b8fe8a2254 Fix 35508, 33762, 35024.
git-svn-id: svn://10.0.0.236/trunk@66003 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 21:10:27 +00:00
scc%netscape.com
30c94c1d11 making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@64906 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-01 22:31:00 +00:00
warren%netscape.com
9fa657f1cd Necko API changes: primarily nsIChannel, changing initialization parameters to accessors. Got javascript: evaluation to happen at the right time (when AsyncRead is called) as well as on the right thread.
git-svn-id: svn://10.0.0.236/trunk@64449 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-29 03:58:50 +00:00
dougt%netscape.com
8c7386c26d removing checks for null before calling delete(). I do not know what I was
thinking.  davidm pointed this out.


git-svn-id: svn://10.0.0.236/trunk@64362 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-28 11:39:06 +00:00
bruce%cybersight.com
fbaca24345 Fix for memory leak. r=gordon bug #28902
git-svn-id: svn://10.0.0.236/trunk@63367 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-18 04:10:27 +00:00
dougt%netscape.com
6da87faa08 adding checks before delete().
git-svn-id: svn://10.0.0.236/trunk@63025 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-15 07:47:33 +00:00
gagan%netscape.com
2243abab30 Fix for 30385. We were leaking channel due to the no longer needed "proxy channel" by the cache transport (mem cache) Also removed nsIHttpEventSink.h since its now an IDL. Also fixed 31667, 31222, 31657 (the assertion failures for thread safety)
git-svn-id: svn://10.0.0.236/trunk@62832 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-14 03:24:56 +00:00
warren%netscape.com
d100457780 Bug 21556: Making linux be thread-safe. Making tons of classes implement threadsafe AddRef/Release. a=jar
git-svn-id: svn://10.0.0.236/trunk@62243 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-05 21:26:01 +00:00
davidm%netscape.com
8767521c24 26171 Trigger bigfile .xpi a 2nd time results in -207
install fail 
 25585      Leaking a C string 
 25590   Leaking C string in cache co
20893    Cache preferences need to be hooked up 
r = gordon@netscape.com


git-svn-id: svn://10.0.0.236/trunk@61115 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-16 07:48:06 +00:00
gagan%netscape.com
2ad38ca064 We had a nsCOMPtr on a class instead on a interface (along with the problem that its default constructor was protected) This was preventing the cache from being built on AIX. Should work now. r=self(& scc) See bug 24876
git-svn-id: svn://10.0.0.236/trunk@58535 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-25 03:11:16 +00:00
mscott%netscape.com
0d69d94b7d add nsIStreamObserver to QI method. Since it is inherited from nsIStreamListener, you need to explicitly list both
otherwise it generates an assert when you use a nsCOMPtr to QI for a method on nsIStreamObserver


git-svn-id: svn://10.0.0.236/trunk@57616 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-13 03:17:38 +00:00
fur%geocast.com
a6f1d0feec Fix #21660 (Browser buster crash in cache). a:chofmann
git-svn-id: svn://10.0.0.236/trunk@56196 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-18 14:58:09 +00:00
fur%netscape.com
c125f8fc68 + Handle the case of inability to write into cache correctly.
+ Be more aggressive about clearing the UPDATE_IN_PROGRESS flag on the cache entry


git-svn-id: svn://10.0.0.236/trunk@55699 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-08 03:32:56 +00:00
fur%netscape.com
e2cc250b30 + Eliminated use of bool to accommodate non-ANSI C++ compilers.
(Thanks to tor@cs.brown.edu for the patch)
+ Eliminated compiler warnings


git-svn-id: svn://10.0.0.236/trunk@55576 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-07 09:49:55 +00:00
sfraser%netscape.com
0bf5246e2c Fixes to build on Mac, where PRInt64 is a struct, and fix a typo. r=fur
git-svn-id: svn://10.0.0.236/trunk@55541 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-07 06:29:13 +00:00
fur%netscape.com
cb8d4be3b8 Landing of CacheIntegration_BRANCH in support of bug #8305 (Implement cache)
git-svn-id: svn://10.0.0.236/trunk@55511 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-07 02:07:31 +00:00