Commit Graph

62 Commits

Author SHA1 Message Date
Jeff Walden
ab9efdce04 Bug 568663 - Always append bytes to arrays using increments guaranteed to be substantially below the maximum function argument count. r=honzab 2011-07-25 15:25:38 -07:00
Chris Pearce
54972b5237 Bug 508128 - add gc() in httpd.js, reduces memory by 1GB in xpcshell.exe during mochitest run. r=jwalden 2009-08-04 16:55:00 -04:00
Edward Lee
ea791bc27a Bug 589016 - Allow registering path handlers from mochitests [r=waldo a=npotb]
Export the registerPathHandler for use from .sjs.
2010-08-31 23:49:43 -07:00
Benjamin Smedberg
1c52097d6a Fix review comments from bug 568691 comment 45. 2010-06-24 11:56:28 -04:00
Benjamin Smedberg
ab0b38f453 Fix syntax error in httpd.js 2010-06-22 16:22:33 -04:00
Benjamin Smedberg
4eb44d9d34 Bug 568691 - Convert existing JS components to use NSGetFactory and add manifest files for them. In a followup we will link the .manifest files together at packaging time. This patch was developed on Linux: Windows and Mac may require additional changes. 2010-06-22 12:59:15 -04:00
Michael Kohler
e4abd093dc Bug 564091: Fix spelling of nonexistent across the tree. r=timeless 2010-05-23 12:26:15 -07:00
Jeff Walden
5bce5d27e8 Bug 513854 - httpd.js should write its response data asynchronously. r=sayrer 2009-09-29 19:54:34 -07:00
Neil Rashbrook
ac0ffd10b1 Bug 415761 Adding Windows-only test r=waldo 2010-03-20 23:57:57 +00:00
Joel Maher
c0ce59f423 Bug 544097 Chaning mochitests to run against mochi.test instead of localhost r=ted, waldo, dwitte p=jmaher. Landed on CLOSED TREE 2010-03-12 13:53:36 -08:00
Brad Lassey
cf8558308e backing out changesets e939397fc6a5, 88529662c474 and 3d7c54b194bb due to random hangs in pgo tests 2010-03-09 22:33:11 -05:00
Joel Maher
fc440b802d Bug 544097 changing mochitests to use mochi.test instead of localhost for windows mobile refactoring p=jmaher, r=ted,dwitte, sayrer, waldo, ctalbert 2010-03-09 08:55:39 -08:00
Kyle Huey
74827fb435 Backed out changeset 8ce70abd7777 2010-03-09 01:14:21 -05:00
Joel Maher
3ff94711b5 Bug 544097 Change mochitests to use mochi.test instead of localhost for mobile refactoring p=jmaher r=ted,dwitte,sayrer 2010-03-08 19:21:33 -08:00
Clint Talbert
a7c210544a Backed out changeset b4372055f473 -- due to unexplained orange on OS X Leak test (Bd) box 2010-03-07 17:34:23 -08:00
Joel Maher
b51e4506cb Bug 544097 - Change mochitests to use mochi.test instead of localhost for mobile test refactoring p=jmaher, r=sayrer,dwitte 2010-03-07 16:08:05 -08:00
Zack Weinberg
2ac8e0d36b Bug 540633: Label httpd.js debug logs, optionally timestamp them, and add support for enabling or disabling them in the middle of a run (currently only for mochitests). r=jwalden 2010-02-09 14:07:33 -08:00
Zack Weinberg
21b7116c19 Bug 536603 followup: Look up network.http.max-connections-per-server in httpd.js, rather than hardwiring a constant that needs to be bigger than that pref. r=jwalden 2010-01-29 18:17:33 -08:00
Zack Weinberg
fdb56ed420 Bug 536603 potential fix: in httpd.js, the server socket's queue limit should be larger than the browser-side max number of connections per server. r=jrmuizel 2010-01-18 18:12:39 -08:00
Zack Weinberg
efa952a7f4 Back out instrumentation for bug 536603 and re-disable test 2010-01-18 14:54:56 -08:00
Zack Weinberg
7aa13b8a12 Extensive debugging instrumentation for bug 536603 2010-01-18 09:03:50 -08:00
Robert O'Callahan
0fa4e0fbb7 Bug 526323. httpd.js should send custom headers with 416 responses. r=jwalden 2009-12-16 09:08:58 +13:00
Jae-Seong Lee
0c9d871d16 Bug 521189 - Some necko unit tests fail or hang with 'strict' & 'werror' on. r=jwalden 2009-11-10 14:11:31 -08:00
Jeff Walden
59d552ac80 Bug 526686 - Add QueryInterface methods to all exposed types of objects in httpd.js. Also change nsIHttpRequestMetadata to nsIHttpRequest for a little conciseness. r=waylon, not worth someone's time to review trivial code changes and renamings 2009-11-06 16:24:32 -08:00
Jeff Walden
dbb0733189 Bug 484027 - Add a method providing minimally controlled arbitrary write access to the connection within a response, allowing arbitrary information (even data which is not a syntactically valid HTTP response) to be sent in responses. r=sayrer 2009-05-28 14:54:42 -07:00
Jeff Walden
d9e5b5b81c Bug 482418 - HTTP range handling code shouldn't run when requesting and processing SJS files. Tag-team patching and testing effort by roc and me, r=me 2009-04-23 14:04:50 -07:00
Jeff Walden
aa654fd854 Disable debug logging in httpd.js now that the previous change appears acceptable to tinderboxen. Also disable test_start_stop.js on Windows, because Windows is dumb and will let me asyncListen on two nsIServerSockets at the same time on the same port without the second such call throwing an exception. r=bloatedtinderboxlogs, r=stupidwindows 2009-04-15 17:55:36 -07:00
Jeff Walden
d0f179a163 Bug 396226 - Provide an API to asynchronously generate HTTP responses in httpd.js, and implement a state-storage system which can store object references to provide greater contextual information in handlers. NB: this push enables httpd.js debug output just in case something goes wrong, to be disabled as soon as it's clear nothing has -- expect the first Windows builds to finish next century sometime. r=sayrer 2009-04-15 13:19:35 -07:00
Michal Novotny
b801ed018f Bug 470716. Make the close-on-completion behavior of nsAsyncStreamCopier configurable. r+sr=bzbarsky. 2009-03-30 15:10:13 -04:00
Bjarne
41338f3b87 Bug 203271 - max-age should override expires in http headers; r=(cbiesinger + jwalden+bmo) sr=cbiesinger 2009-03-19 00:59:36 +01:00
Serge Gautherie
be0ee069c1 Backed out changeset: be6d39f94146 of
Bug 203271 - max-age should override expires in http headers; r+sr=cbiesinger
which breaks all test suites.
2009-03-13 19:08:52 +01:00
Bjarne
ed28152ba6 Bug 203271 - max-age should override expires in http headers; r+sr=cbiesinger 2009-03-13 15:51:29 +01:00
Jeff Walden
ccdad15079 Followup nitfix to bug 476302 that wasn't noticed when I reviewed the patch there 2009-02-27 15:57:07 -08:00
Honza Bambas
f1f57735a7 Bug 476302 - Allow httpd.js return multiple headers with same name, r=jwalden 2009-02-27 15:09:06 +01:00
Honza Bambas
81db60da0c Bug 468443 - Remove PUT/DELETE support from httpd.js, r=jwalden 2009-02-18 14:31:30 +01:00
Jeff Walden
58012a508d Bug 471158 - Add getSharedState/setSharedState functionality to SJS, convert existing state to per-path state. r=honzab 2009-02-04 11:08:03 -08:00
Jeff Walden
4e3906faab Bug 465921 - httpd.js fails to deliver after about 35 reloads of test_seek1.html, most likely because the connection is being prematurely terminated by the client. r=bz 2008-12-15 21:02:40 -08:00
Jeff Walden
9327412cbe Bug 468467 - If onInputStreamReady doesn't process all of the Request-Line the first time, httpd.js asserts. r=honzab 2008-12-12 11:31:30 -08:00
Jeff Walden
f33c2cd7d4 Bug 463327 - Enable stateful SJS handlers somehow other than through universal insta-XSS. r=honzab 2008-12-03 22:24:59 -08:00
Jeff Walden
30661ff4c3 Bug 463254 - httpd.js fails on mac when running test_CrossSiteXHR.html. The problem was that exceptions were causing files not to be closed on OS X, and we were hitting the open-file limit; add some try-finally magic to close in a failsafe manner. r=honzab 2008-11-06 12:44:27 -08:00
Jeff Walden
8a596f03d6 Bug 462864 - Expose request body as a stream, state-machine refactoring in httpd.js. r=honzab 2008-11-05 15:31:30 -08:00
Jeff Walden
23c0b41b4c Consistently rebrand to httpd.js, since that's basically how everyone knows about it and because the older name was ugly. No bug, basically comment-only changes, r+sr+ui-r+a=mconnor per the inestimable firebot 2008-11-02 22:46:54 -08:00
Chris Double
569d9219af Bug 398185 - Add byte range request support to JS httpd - r=jwalden+bmo 2008-10-17 12:38:14 +13:00
Jonas Sicking
c8e37fb5f2 Update Access-Control implementation to match changes in spec. b=389508 r/sr=jst 2008-09-30 17:50:42 -07:00
Chris Double
d81dc83f45 Backed out changeset c2e02e6250db 2008-09-25 19:34:29 +12:00
Chris Double
e14cb1d359 Bug 398185 - Add byte range request support to JS httpd - r+=sayrer 2008-09-25 15:30:35 +12:00
Olli Pettay
d658d45525 Bug 454217, httpd.js doesn't handle large body properly, r=sayrer, +change XHR POST test to use request.body 2008-09-09 12:32:35 +03:00
Honza Bambas
e48930c72c Bug 443610 - Add body and PUT handling to httpd.js; "DELETE" part; r=sayrer 2008-09-07 17:19:08 +02:00
Honza Bambas
3f22508a1a Bug 443610 - Add body and PUT handling to httpd.js; "PUT" part; r=sayrer 2008-09-07 17:18:06 +02:00
Jeff Walden
c1031870fd Bug 428009 - Update the HTTP server to require a *correct* host be specified with it, not just *a* host via an absolute URI as Request-URI or a specified Host header. This also gives request handlers proper details about the location to which the request was targeted. r=biesi on the raw socket usage in the test code, r=ted on the build changes, r=sayrer on the server changes 2008-06-07 02:43:15 -04:00