Commit Graph

80 Commits

Author SHA1 Message Date
valeski%netscape.com
d53a4e079f 21723, a=chofmann, r=rpotts. landing new FTP implementation. It's now much leaner on event processing, and no longer buffers data between the socket transport and consumer. This change went in in order to unblock the xpinstall guys on a UI thread starvation problem
git-svn-id: svn://10.0.0.236/trunk@56020 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-15 03:35:15 +00:00
valeski%netscape.com
b75d99c004 r=rhp. 21242 adjusted pipe buffer params for FTP Async file transfers. URI dispatching had aggrivated this bug. Now file viewing via FTP works.
git-svn-id: svn://10.0.0.236/trunk@55795 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-09 06:41:05 +00:00
warren%netscape.com
c7d8a4a439 Added buffer size parameters to NewChannel. Allows for optimization of amount of image data consumed. Bug #20408
git-svn-id: svn://10.0.0.236/trunk@55285 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-04 10:01:32 +00:00
valeski%netscape.com
82cca0d48b r=rpotts, 17052. FTP now implements nsIProgressEventSink and sits inbetween the transport's notifications and the consumers.
git-svn-id: svn://10.0.0.236/trunk@54755 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-30 15:07:32 +00:00
valeski%netscape.com
432c3ffc1f r=waterson. 16914. FTP was authentication anonymously even though username and pwd info were suppplied in the url. now it isn't
git-svn-id: svn://10.0.0.236/trunk@54719 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-30 04:39:29 +00:00
dougt%netscape.com
0c53e29d87 fix for 18078. r=mstoltz,warren
git-svn-id: svn://10.0.0.236/trunk@54648 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-30 00:32:43 +00:00
valeski%netscape.com
4695b284df r=mscott, premature stream closure cleanup and minor state change to FTP state machine.
git-svn-id: svn://10.0.0.236/trunk@54429 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-24 21:08:04 +00:00
valeski%netscape.com
217a9a5ea0 18435,18413. r=warren. Implemented AsyncOpen for FTP, as well as OpenInputStream. FTP no longer implements the stream listener interface
git-svn-id: svn://10.0.0.236/trunk@54318 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-23 22:00:18 +00:00
warren%netscape.com
cbcd671c5d Removed the nsICapabilities interface in favor of nsIInterfaceRequestor.
git-svn-id: svn://10.0.0.236/trunk@53856 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-18 07:36:41 +00:00
warren%netscape.com
d8627fe912 Necko API and implementation changes for retargeting. Needed for URL dispatching. r=mscott
git-svn-id: svn://10.0.0.236/trunk@53761 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-17 08:14:52 +00:00
valeski%netscape.com
c7d300d956 fixing bustage for win32 vc5
git-svn-id: svn://10.0.0.236/trunk@53394 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-13 01:56:02 +00:00
valeski%netscape.com
d8847a0d1c 18725, r=sdagley. FTP is now cancellable.
* added new state to FTP. data channel reading state.

* the FTP channel's SetConnectionQueue now handles a null arg and resets it's eventq if null is passed in.


git-svn-id: svn://10.0.0.236/trunk@53383 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-13 00:31:36 +00:00
valeski%netscape.com
76ab6dcf18 FTP no longer sets the port on a URI. If no port is set on a URI, FTP will use the default (21) at connection time.
git-svn-id: svn://10.0.0.236/trunk@53291 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-12 01:26:20 +00:00
valeski%netscape.com
8630e33bf6 18419. *removed nsIFTPContext and associated impl of it. we no longer pass this context between the FTP thread and the channel thread, we use nsISupports proxies to move back and forth.*added SetcontentLength() method to nsIFTPChannel so we can move the content length from the FTP thread to the channel thread. nsFTPChannel impls this meth now.*made a couple FTP channel logging changes for better description*nsCOMPtrized a bit*added nsFTPChannel to load group when avail (this starts/stops the throbber for url bar loaded ftp urls.*the FTP protocl handler (a service) is now an observer of XPCOM shutdown. this allows the handler to join w/ all the threads it has created (that are still running) if we try and shutdown the main thread whill ftp is still running.
git-svn-id: svn://10.0.0.236/trunk@53172 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-11 02:14:23 +00:00
morse%netscape.com
4cad860e7c fix bug 65552, integrating ftp authentication with single signon, r=valeski
git-svn-id: svn://10.0.0.236/trunk@53063 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-10 03:39:33 +00:00
dmose%mozilla.org
92d791b7b0 updated license boilerplate to xPL 1.1, a=chofmann@netscape.com,r=endico@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@52908 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-06 03:40:37 +00:00
gagan%netscape.com
4ef759b3d4 Removed an extra free that cvs merge put in!
git-svn-id: svn://10.0.0.236/trunk@52714 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-03 08:21:37 +00:00
gagan%netscape.com
cb1a2aee98 Argh... speed kills. Removed this conflict that I accidently checked in.
git-svn-id: svn://10.0.0.236/trunk@52713 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-03 08:19:54 +00:00
gagan%netscape.com
8f3ae7048a Fixes 11708,15477 and partial 14610. r=warren. We now pass a print host for displaying in status messages that is different than the hostname connecting to. Also added Keep-Alive support (turned on by user_pref("network.http.keep-alive",1))We also honor the "network.proxy.type" preference to turn the proxy use on and off.
git-svn-id: svn://10.0.0.236/trunk@52712 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-03 08:17:59 +00:00
valeski%netscape.com
ff5c4380e5 16910, r=mcafee. FTP now uses thread pools. it also provides some status to the webshell. and it no longer uses the server's defualt path.
git-svn-id: svn://10.0.0.236/trunk@52503 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-02 04:04:23 +00:00
danm%netscape.com
cd569b141a insert cast necessary on one of the "other" platforms
git-svn-id: svn://10.0.0.236/trunk@52312 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-30 03:13:55 +00:00
valeski%netscape.com
2eefe93ceb 17521, r = mscott. FTP authentication dialogs we're looping if canceled. I also changed a bunch of string getter routines to take XPIDLCStrings. there was speculation during the reveiw that there might be some casting problems on other platforms. if this is the case either case the XPIDLCString to (const char *) or call me and I'll do it.
git-svn-id: svn://10.0.0.236/trunk@52285 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 23:00:52 +00:00
sspitzer%netscape.com
3a3c45b57c fix warnings. r=valeski
git-svn-id: svn://10.0.0.236/trunk@52100 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 20:25:43 +00:00
valeski%netscape.com
f94df2ee59 17270, r=dougt@netscape.com. These changes move FTP from interface pointers to COMptrs. There is also a variable name change, mUrl -> mURL. Also some extraneous pipe code has been removed.
git-svn-id: svn://10.0.0.236/trunk@51878 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 20:55:50 +00:00
valeski%netscape.com
5310cb0ddc removing last reference to nsFtpStreamListenerEvent.h. Actually it was a commented out line.
git-svn-id: svn://10.0.0.236/trunk@51508 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 04:33:19 +00:00
valeski%netscape.com
455aa3e358 14659, r=dougt. FTP now uses xpcom proxies to send stream listener notifications back to the channel thread. it also uses them to access connections from the protocol handler cache.
git-svn-id: svn://10.0.0.236/trunk@51503 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 04:10:46 +00:00
valeski%netscape.com
cc447b7234 14659, r=gagan&warren&dougt
Misc. FTP changes:
*increased FTP buffer read/write size from 4k to 8k.
*removed un-needed (for now) SetPASV() for FTP connection thread
*string optimizations
*FTP Connection thread now uses the NS_IMPL_ISUPPORTS4 macro for addref, rel, and QI methods.
*connection cache key api consolidation (Get()/Remove() combo turned into Remove(key)).

Authentication dialog changes:
*Authentication dialog now includes host name the user is trying to connect to.

nsIRequest support:
*FTP Connection thread now maintains a member variable pointing to it's event queue. It also pumps the event queue in the main loop.
*FTP Connection thread now implemented the nsIRequest interface (never called directly; only via the nsFTPChannel api)
*FTP Channel now uses an xpcom proxy object to make the nsIRequest api calls on the FTP Connection thread.

FTP protocol interpretation changes:
*FTP now handles servers that send multi-line greetings in the first Read() (we blocked indefinately before)
*FTP now parses the parent working directory properly (used to always treat it as '/')


git-svn-id: svn://10.0.0.236/trunk@51199 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 22:37:47 +00:00
gagan%netscape.com
b3785299ff Fix for bug # 10333. Made webshell a progress event sink as well so that now it redirects all progress messages from necko land to the appropriate docloader observer. The hack to delete strings which are being received in the status messages is a work around the current limitation of the proxy event code. When bug # 16273 is fixed that delete wont be necessary. In fixing this I also noticed that the nsFileTransport wasn't using the proxy events and was incorrectly firing status messages directly onto the UI thread. Fixed that as well. r=rpotts,warren
git-svn-id: svn://10.0.0.236/trunk@50588 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 10:24:12 +00:00
valeski%netscape.com
285283e32e 15300 r=warren. Changed NS_NewThread api to default to PR_UNJOINABLE_THREAD, also added new NS_NewThread() function so you don't have to combine the runnable w/ thread creation. added threads to xpcom init so you can create them w/ the com mgr. 15298 r=gagan, FTP threads are now synched w/ ftp handler shutdown, removed extraneous buffer work, added ftp authentication, and ftp channel content length
git-svn-id: svn://10.0.0.236/trunk@49618 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 23:32:12 +00:00
mccabe%netscape.com
69a8cf7c7b Fix to 7610. Modify xpidl compiler to add 'const' to the method signature for generated attribute setter methods for string, wstring and nsid attributes.
As this changed the generated interface signatures, I had to change all of the uses to avoid bustage.  Any corners of the browser that aren't built by default, or that I haven't discovered how to build, may be at risk of bustage if they use string or wstring attributes.  (This could mean blackwood; sorry, guys!)

Many thanks to Alec Flett (alecf@netscape.com) for preparing diffs for the mailnews portion of the signature changes; thanks also to Ariel Backenroth (arielb@rice.edu) and Mike Shaver (shaver@mozilla.org) for help with updating the tree with NS_DECL_NSIFOO macros; everwhere where one of these macros was used was one less place I had to manually add 'const'.

Also removed extraneous space from generated method signatures, leftover from Brendan's capitalization spam, and made 'const decl must be of type short or long' an error rather than just a warning.


git-svn-id: svn://10.0.0.236/trunk@48284 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 23:46:35 +00:00
valeski%netscape.com
43516fc7cc added more logging. fix attempt at 14209.
git-svn-id: svn://10.0.0.236/trunk@48122 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 00:37:21 +00:00
valeski%netscape.com
fa488e5f78 FTP now uses the unknown content-type when it can't find one for the file it's transferring
git-svn-id: svn://10.0.0.236/trunk@47462 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 00:04:32 +00:00
valeski%netscape.com
a4d2c857d7 we now attempt a read even if the buffer's available count is zero. we were calling available before any data was getting in
git-svn-id: svn://10.0.0.236/trunk@47383 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-14 21:21:00 +00:00
valeski%netscape.com
7720e5d6cd fixed buffer mem allocation inconsistencies. we now loop for more data on long dir listings. we also consider any server string with 'windows' in it, to be an NT server. also added deletion of dir listing underlying buffer fir stringstream to the OnDataAvailEvent destructor; kinda ugly, but works
git-svn-id: svn://10.0.0.236/trunk@47207 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-13 23:29:12 +00:00
jdunn%netscape.com
ed86088e88 hp requires a newline at the end
git-svn-id: svn://10.0.0.236/trunk@46893 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-10 23:56:20 +00:00
valeski%netscape.com
4b26abf235 we now handle a complete single line greeting from an ftp server
git-svn-id: svn://10.0.0.236/trunk@46847 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-10 22:09:39 +00:00
valeski%netscape.com
1c115e8483 updated FTP to use the directory listing stream converter when it encounters a dir listing. also removed it's dependency on time.h
git-svn-id: svn://10.0.0.236/trunk@46770 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-10 14:32:06 +00:00
valeski%netscape.com
30bf2a8793 changed nsCOMTypeInfo<> template to NS_GET_IID macro
git-svn-id: svn://10.0.0.236/trunk@45978 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-03 23:51:14 +00:00
rickg%netscape.com
f8f3121066 removed a warning
git-svn-id: svn://10.0.0.236/trunk@45389 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-01 00:58:45 +00:00
rickg%netscape.com
da713e88f4 replaced call to deprecated method in nsString
git-svn-id: svn://10.0.0.236/trunk@45069 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-29 17:44:48 +00:00
valeski%netscape.com
85cbe7eb36 change nsString2 to nsCString
git-svn-id: svn://10.0.0.236/trunk@45058 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-29 16:42:27 +00:00
warren%netscape.com
f42f069d47 Ported to the new nsPipe2 implementation.
git-svn-id: svn://10.0.0.236/trunk@44808 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-27 10:33:37 +00:00
gagan%netscape.com
aeef0871e9 More mem leak fixes which were showing up originating in nsStdURL.
git-svn-id: svn://10.0.0.236/trunk@44796 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-27 09:59:59 +00:00
valeski%netscape.com
a62eeae9e5 Added start request event firing, and we now maintain the initial response code from a multi-line response
git-svn-id: svn://10.0.0.236/trunk@44365 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 21:53:27 +00:00
valeski%netscape.com
fa6574def4 added pr logging to ftp
git-svn-id: svn://10.0.0.236/trunk@44346 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 21:46:09 +00:00
warren%netscape.com
b6f8885a30 Replaced nsPipe2.h with nsIPipe.idl
git-svn-id: svn://10.0.0.236/trunk@44273 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 08:46:32 +00:00
sspitzer%netscape.com
1b949e4c3c fix warning
git-svn-id: svn://10.0.0.236/trunk@43569 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 06:27:24 +00:00
valeski%netscape.com
4637a84b9b added pipe2 stuff back in after patrick got the pipe2 stuff linking in w/ mac
git-svn-id: svn://10.0.0.236/trunk@43209 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-12 01:01:55 +00:00
valeski%netscape.com
6325130175 removed nsPipe2 api usage
git-svn-id: svn://10.0.0.236/trunk@43204 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 23:58:35 +00:00
valeski%netscape.com
73be36541d adding next rev of ftp protocol
git-svn-id: svn://10.0.0.236/trunk@43197 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 22:26:32 +00:00