6 months agoRemove permessage-compress extension support master
tyoshino@chromium.org [Tue, 25 Nov 2014 03:46:01 +0000 (03:46 +0000)]
Remove permessage-compress extension support

Release note: Remove permessage-compress extension support


Review URL: https://codereview.appspot.com/166260043

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@860 4ff78f4a-9131-11de-b045-6380ec9940d4

6 months agoUpdate expectation for permessage-deflate compression result for empty payload
tyoshino@chromium.org [Tue, 25 Nov 2014 03:43:55 +0000 (03:43 +0000)]
Update expectation for permessage-deflate compression result for empty payload

It seems newer zlib library omits unnecessary compressed block and just puts
uncompressed block for empty input.

Release note: n/a


Review URL: https://codereview.appspot.com/179880043

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@859 4ff78f4a-9131-11de-b045-6380ec9940d4

6 months agoAdd comments about Stream.close_connection()'s behavior
tyoshino@chromium.org [Tue, 25 Nov 2014 03:40:22 +0000 (03:40 +0000)]
Add comments about Stream.close_connection()'s behavior

Release note: n/a


Review URL: https://codereview.appspot.com/170050043

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@858 4ff78f4a-9131-11de-b045-6380ec9940d4

6 months agoCall notifyAbort when error occurs
hiroshige@chromium.org [Wed, 12 Nov 2014 06:57:37 +0000 (06:57 +0000)]
Call notifyAbort when error occurs

notifyAbort will be used to terminate the benchmark in performance tests.
Otherwise, the benchmark stops working, causing timeout.


Review URL: https://codereview.appspot.com/173940043

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@857 4ff78f4a-9131-11de-b045-6380ec9940d4

6 months ago[benchmark] Check and warn if proxy is enabled
hiroshige@chromium.org [Mon, 10 Nov 2014 11:08:28 +0000 (11:08 +0000)]
[benchmark] Check and warn if proxy is enabled


Review URL: https://codereview.appspot.com/147450043

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@856 4ff78f4a-9131-11de-b045-6380ec9940d4

7 months ago[xhr_event_logger] Show timestamps of events
hiroshige@chromium.org [Fri, 24 Oct 2014 04:26:56 +0000 (04:26 +0000)]
[xhr_event_logger] Show timestamps of events


Review URL: https://codereview.appspot.com/162010043

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@855 4ff78f4a-9131-11de-b045-6380ec9940d4

7 months ago[benchmark] Do not call measureValue in warm-up iterations
hiroshige@chromium.org [Thu, 23 Oct 2014 08:16:00 +0000 (08:16 +0000)]
[benchmark] Do not call measureValue in warm-up iterations


Review URL: https://codereview.appspot.com/154680043

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@854 4ff78f4a-9131-11de-b045-6380ec9940d4

7 months agoAdd warm-up iteration config
hiroshige@chromium.org [Thu, 2 Oct 2014 07:48:33 +0000 (07:48 +0000)]
Add warm-up iteration config

The first n iterations are excluded from the average
where n is the number of warm-up iterations.


Review URL: https://codereview.appspot.com/147190043

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@853 4ff78f4a-9131-11de-b045-6380ec9940d4

8 months ago[benchmark] Do not abort() when readyState is DONE in destroyAllXHRs
hiroshige@chromium.org [Thu, 25 Sep 2014 03:03:08 +0000 (03:03 +0000)]
[benchmark] Do not abort() when readyState is DONE in destroyAllXHRs

This is to supress DevTools error messages, because on Chrome calling abort()
in an onreadystatechange handler in sync mode causes a NetworkError message,
even if it is after transition to DONE state.


Review URL: https://codereview.appspot.com/142550043

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@852 4ff78f4a-9131-11de-b045-6380ec9940d4

8 months ago[benchmark] Add XHR Async/Sync config
hiroshige@chromium.org [Wed, 24 Sep 2014 05:35:26 +0000 (05:35 +0000)]
[benchmark] Add XHR Async/Sync config


Review URL: https://codereview.appspot.com/148740043

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@851 4ff78f4a-9131-11de-b045-6380ec9940d4

8 months agoClear timerID in the result reporting task
hiroshige@chromium.org [Thu, 18 Sep 2014 04:19:37 +0000 (04:19 +0000)]
Clear timerID in the result reporting task


Review URL: https://codereview.appspot.com/142960043

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@850 4ff78f4a-9131-11de-b045-6380ec9940d4

8 months agoWhen returning 401 response, WebSocketRequestHandler.parse_request must return False
tyoshino@chromium.org [Wed, 17 Sep 2014 03:54:30 +0000 (03:54 +0000)]
When returning 401 response, WebSocketRequestHandler.parse_request must return False

Returning False prevents the default handler from being run


Review URL: https://codereview.appspot.com/138370043

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@849 4ff78f4a-9131-11de-b045-6380ec9940d4

8 months agoClear timers at stop() in benchmark.js (to be consistent with xhr_benchmark.js)
hiroshige@chromium.org [Fri, 12 Sep 2014 06:54:30 +0000 (06:54 +0000)]
Clear timers at stop() in benchmark.js (to be consistent with xhr_benchmark.js)


Review URL: https://codereview.appspot.com/142950043

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@848 4ff78f4a-9131-11de-b045-6380ec9940d4

8 months ago[xhr_event_logger] Add an option to test sync XHR
tyoshino@chromium.org [Fri, 12 Sep 2014 05:59:31 +0000 (05:59 +0000)]
[xhr_event_logger] Add an option to test sync XHR


Review URL: https://codereview.appspot.com/139550043

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@847 4ff78f4a-9131-11de-b045-6380ec9940d4

8 months agoClear event listeners by setting them to null, instead of function() {}.
hiroshige@chromium.org [Fri, 12 Sep 2014 05:39:13 +0000 (05:39 +0000)]
Clear event listeners by setting them to null, instead of function() {}.

This reduces the number of listeners shown in the Chrome DevTools timeline.


Review URL: https://codereview.appspot.com/136530044

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@846 4ff78f4a-9131-11de-b045-6380ec9940d4

8 months agoFix the filename of the utility definition file in xhr_event_logger.html.
tyoshino@chromium.org [Fri, 12 Sep 2014 04:32:20 +0000 (04:32 +0000)]
Fix the filename of the utility definition file in xhr_event_logger.html.

It's been renamed to util_main.js


Review URL: https://codereview.appspot.com/137500043

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@845 4ff78f4a-9131-11de-b045-6380ec9940d4

8 months agoAdd config.measureValue callback
hiroshige@chromium.org [Wed, 10 Sep 2014 21:31:00 +0000 (21:31 +0000)]
Add config.measureValue callback

config.measureValue is call with the elapsed time in milliseconds for every measurement.
This is intended to be used in Chromium Performance Test.


Review URL: https://codereview.appspot.com/141390043

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@844 4ff78f4a-9131-11de-b045-6380ec9940d4

8 months agoRefactoring: rename responseType to dataType in xhr_benchmark
hiroshige@chromium.org [Wed, 10 Sep 2014 08:16:34 +0000 (08:16 +0000)]
Refactoring: rename responseType to dataType in xhr_benchmark


Review URL: https://codereview.appspot.com/137450043

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@843 4ff78f4a-9131-11de-b045-6380ec9940d4

8 months agoAdd benchmark option to run on workers
hiroshige@chromium.org [Wed, 10 Sep 2014 06:57:04 +0000 (06:57 +0000)]
Add benchmark option to run on workers


Review URL: https://codereview.appspot.com/135620043

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@842 4ff78f4a-9131-11de-b045-6380ec9940d4

8 months agoxhr_event_logger new features (upload event, dump ProgressEvent, response mode)
tyoshino@chromium.org [Tue, 9 Sep 2014 05:30:11 +0000 (05:30 +0000)]
xhr_event_logger new features (upload event, dump ProgressEvent, response mode)


Review URL: https://codereview.appspot.com/141740043

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@841 4ff78f4a-9131-11de-b045-6380ec9940d4

8 months agoShow user agent in summary box
hiroshige@chromium.org [Fri, 5 Sep 2014 07:41:09 +0000 (07:41 +0000)]
Show user agent in summary box


Review URL: https://codereview.appspot.com/134510043

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@840 4ff78f4a-9131-11de-b045-6380ec9940d4

8 months agoDisplay config in summary box
hiroshige@chromium.org [Fri, 5 Sep 2014 07:19:18 +0000 (07:19 +0000)]
Display config in summary box


Review URL: https://codereview.appspot.com/138110043

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@839 4ff78f4a-9131-11de-b045-6380ec9940d4

8 months agoFix radio box handling of xhr_benchmark.html to work on IE
hiroshige@chromium.org [Fri, 5 Sep 2014 06:01:50 +0000 (06:01 +0000)]
Fix radio box handling of xhr_benchmark.html to work on IE


Review URL: https://codereview.appspot.com/135480043

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@838 4ff78f4a-9131-11de-b045-6380ec9940d4

8 months agoReplace variable name |runner| with |task|
hiroshige@chromium.org [Thu, 4 Sep 2014 10:57:17 +0000 (10:57 +0000)]
Replace variable name |runner| with |task|


Review URL: https://codereview.appspot.com/133550043

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@837 4ff78f4a-9131-11de-b045-6380ec9940d4

8 months agoExclude ArrayBuffer creation from the reported time in XHR benchmark
hiroshige@chromium.org [Thu, 4 Sep 2014 08:52:43 +0000 (08:52 +0000)]
Exclude ArrayBuffer creation from the reported time in XHR benchmark


Review URL: https://codereview.appspot.com/140230043

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@836 4ff78f4a-9131-11de-b045-6380ec9940d4

8 months agoMove totalSize and totalReplied declarations inside functions
hiroshige@chromium.org [Thu, 4 Sep 2014 07:48:10 +0000 (07:48 +0000)]
Move totalSize and totalReplied declarations inside functions


Review URL: https://codereview.appspot.com/141020043

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@835 4ff78f4a-9131-11de-b045-6380ec9940d4

8 months agoOutput error message when FileReader for a blob fails
hiroshige@chromium.org [Thu, 4 Sep 2014 07:28:09 +0000 (07:28 +0000)]
Output error message when FileReader for a blob fails


Review URL: https://codereview.appspot.com/141010043

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@834 4ff78f4a-9131-11de-b045-6380ec9940d4

8 months agoRefactor variable initialization of |benchmark|
hiroshige@chromium.org [Thu, 4 Sep 2014 07:10:45 +0000 (07:10 +0000)]
Refactor variable initialization of |benchmark|


Review URL: https://codereview.appspot.com/134420043

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@833 4ff78f4a-9131-11de-b045-6380ec9940d4

8 months agoPorted parameter setting UI from benchmark.html to xhr_benchmark.html
hiroshige@chromium.org [Thu, 4 Sep 2014 07:09:50 +0000 (07:09 +0000)]
Ported parameter setting UI from benchmark.html to xhr_benchmark.html

Enable to run the bench multiple times and display stddev.
Added 'batch' button that runs send and receive benchmarks.
Support turning off data verification.


Review URL: https://codereview.appspot.com/137980043

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@832 4ff78f4a-9131-11de-b045-6380ec9940d4

8 months agoExclude ArrayBuffer creation from the reported time
hiroshige@chromium.org [Thu, 4 Sep 2014 07:04:05 +0000 (07:04 +0000)]
Exclude ArrayBuffer creation from the reported time


Review URL: https://codereview.appspot.com/138060043

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@831 4ff78f4a-9131-11de-b045-6380ec9940d4

8 months agoEnable to run the bench multiple times and display stddev.
hiroshige@chromium.org [Thu, 4 Sep 2014 06:17:47 +0000 (06:17 +0000)]
Enable to run the bench multiple times and display stddev.

Also added 'batch' button that runs send and receive benchmarks.


Review URL: https://codereview.appspot.com/133510044

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@830 4ff78f4a-9131-11de-b045-6380ec9940d4

8 months agoAdd a tool to investigate events dispatched by XHR
tyoshino@chromium.org [Tue, 2 Sep 2014 07:20:08 +0000 (07:20 +0000)]
Add a tool to investigate events dispatched by XHR


Review URL: https://codereview.appspot.com/134270043

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@829 4ff78f4a-9131-11de-b045-6380ec9940d4

8 months agoIntroduce UI for changing benchmark configuration
tyoshino@chromium.org [Fri, 29 Aug 2014 07:38:28 +0000 (07:38 +0000)]
Introduce UI for changing benchmark configuration

Also merges parameter and config


Review URL: https://codereview.appspot.com/123790044

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@828 4ff78f4a-9131-11de-b045-6380ec9940d4

8 months agoRecommit of 'Faster response body verification in XHR text receive benchmark'
hiroshige@chromium.org [Fri, 29 Aug 2014 07:10:36 +0000 (07:10 +0000)]
Recommit of 'Faster response body verification in XHR text receive benchmark'

This fixes the performance bottleneck of XHR text receive benchmarking.


Review URL: https://codereview.appspot.com/132250043

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@827 4ff78f4a-9131-11de-b045-6380ec9940d4

9 months agoFaster response body verification in XHR text receive benchmark
hiroshige@chromium.org [Wed, 27 Aug 2014 08:53:34 +0000 (08:53 +0000)]
Faster response body verification in XHR text receive benchmark

This fixes the performance bottleneck of XHR text receive benchmarking.


Review URL: https://codereview.appspot.com/130660043

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@826 4ff78f4a-9131-11de-b045-6380ec9940d4

9 months agoFaster request body verification in XHR send handler
hiroshige@chromium.org [Wed, 27 Aug 2014 08:16:14 +0000 (08:16 +0000)]
Faster request body verification in XHR send handler

This fixes the performance bottleneck of XHR send benchmarking.


Review URL: https://codereview.appspot.com/131350043

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@825 4ff78f4a-9131-11de-b045-6380ec9940d4

9 months agoFix indentation in benchmark.html
tyoshino@chromium.org [Tue, 5 Aug 2014 05:32:54 +0000 (05:32 +0000)]
Fix indentation in benchmark.html


Review URL: https://codereview.appspot.com/116570043

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@822 4ff78f4a-9131-11de-b045-6380ec9940d4

9 months ago[Benchmark tools] Adjust start/stop size
tyoshino@chromium.org [Mon, 4 Aug 2014 09:25:50 +0000 (09:25 +0000)]
[Benchmark tools] Adjust start/stop size

R=yhirano@chromium.org, yhirano

Review URL: https://codereview.appspot.com/105450043

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@821 4ff78f4a-9131-11de-b045-6380ec9940d4

11 months ago[benchmark.html] Recreate data also when size decreases
tyoshino@chromium.org [Wed, 25 Jun 2014 06:24:37 +0000 (06:24 +0000)]
[benchmark.html] Recreate data also when size decreases


Review URL: https://codereview.appspot.com/101520044

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@817 4ff78f4a-9131-11de-b045-6380ec9940d4

11 months ago[benchmark.html] Use bind to build test runner closures.
tyoshino@chromium.org [Wed, 25 Jun 2014 06:24:25 +0000 (06:24 +0000)]
[benchmark.html] Use bind to build test runner closures.


Review URL: https://codereview.appspot.com/106180044

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@816 4ff78f4a-9131-11de-b045-6380ec9940d4

11 months ago[benchmark.html] Add a switch to turn on/off data verification
tyoshino@chromium.org [Wed, 25 Jun 2014 04:26:43 +0000 (04:26 +0000)]
[benchmark.html] Add a switch to turn on/off data verification


Review URL: https://codereview.appspot.com/105100045

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@815 4ff78f4a-9131-11de-b045-6380ec9940d4

11 months agoMove PerMessageCompressTest.test_receive_message_deflate_mixed_btype to PerMessageDef...
tyoshino@chromium.org [Thu, 12 Jun 2014 06:25:58 +0000 (06:25 +0000)]
Move PerMessageCompressTest.test_receive_message_deflate_mixed_btype to PerMessageDeflateTest


Review URL: https://codereview.appspot.com/104050044

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@814 4ff78f4a-9131-11de-b045-6380ec9940d4

11 months ago[benchmark.html] Add a checkbox to turn on/off size column printing
tyoshino@chromium.org [Wed, 11 Jun 2014 09:19:43 +0000 (09:19 +0000)]
[benchmark.html] Add a checkbox to turn on/off size column printing


Review URL: https://codereview.appspot.com/107870043

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@812 4ff78f4a-9131-11de-b045-6380ec9940d4

11 months agoMove PerMessageCompressTest.test_receive_message_deflate to PerMessageDeflateTest
tyoshino@chromium.org [Wed, 11 Jun 2014 09:18:56 +0000 (09:18 +0000)]
Move PerMessageCompressTest.test_receive_message_deflate to PerMessageDeflateTest


Review URL: https://codereview.appspot.com/101170043

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@811 4ff78f4a-9131-11de-b045-6380ec9940d4

11 months agoMove PerMessageCompressTest.test_receive_message_deflate_random_section to PerMessage...
tyoshino@chromium.org [Wed, 11 Jun 2014 08:26:18 +0000 (08:26 +0000)]
Move PerMessageCompressTest.test_receive_message_deflate_random_section to PerMessageDeflateTest


Review URL: https://codereview.appspot.com/109800044

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@810 4ff78f4a-9131-11de-b045-6380ec9940d4

11 months agoMove PerMessageCompressTest.test_send_message_deflate_fragmented_bfinal to PerMessage...
tyoshino@chromium.org [Wed, 11 Jun 2014 04:40:52 +0000 (04:40 +0000)]
Move PerMessageCompressTest.test_send_message_deflate_fragmented_bfinal to PerMessageDeflateTest


Review URL: https://codereview.appspot.com/104020043

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@809 4ff78f4a-9131-11de-b045-6380ec9940d4

11 months agoMove PerMessageCompressTest.test_send_message_deflate() to PerMessageDeflateTest
tyoshino@chromium.org [Tue, 10 Jun 2014 06:40:35 +0000 (06:40 +0000)]
Move PerMessageCompressTest.test_send_message_deflate() to PerMessageDeflateTest


Review URL: https://codereview.appspot.com/108770043

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@808 4ff78f4a-9131-11de-b045-6380ec9940d4

11 months agoAdd text mode to xhr_benchmark.html
tyoshino@chromium.org [Mon, 9 Jun 2014 02:19:57 +0000 (02:19 +0000)]
Add text mode to xhr_benchmark.html

R=yhirano@chromium.org, yhirano

Review URL: https://codereview.appspot.com/103170043

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@807 4ff78f4a-9131-11de-b045-6380ec9940d4

11 months ago[benchmark.html] Print time per message
tyoshino@chromium.org [Mon, 9 Jun 2014 01:55:00 +0000 (01:55 +0000)]
[benchmark.html] Print time per message


Review URL: https://codereview.appspot.com/103110048

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@806 4ff78f4a-9131-11de-b045-6380ec9940d4

11 months agoRemove alert() call introduced to benchmark.html by mistake
tyoshino@chromium.org [Fri, 6 Jun 2014 06:02:58 +0000 (06:02 +0000)]
Remove alert() call introduced to benchmark.html by mistake


Review URL: https://codereview.appspot.com/103910046

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@805 4ff78f4a-9131-11de-b045-6380ec9940d4

12 months agoRemove perframe-compress extension support
tyoshino@chromium.org [Mon, 26 May 2014 13:44:00 +0000 (13:44 +0000)]
Remove perframe-compress extension support

Tests are kept and will be run against deflate-frame


Review URL: https://codereview.appspot.com/100690043

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@804 4ff78f4a-9131-11de-b045-6380ec9940d4

12 months ago[Test only] Move deflate tests from PerMessageCompressTest to PerMessageDeflateTest
tyoshino@chromium.org [Mon, 26 May 2014 09:27:38 +0000 (09:27 +0000)]
[Test only] Move deflate tests from PerMessageCompressTest to PerMessageDeflateTest

- empty message test
- message with null character test

After clean up, we'll delete permessage-compress support and


Review URL: https://codereview.appspot.com/97700043

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@803 4ff78f4a-9131-11de-b045-6380ec9940d4

12 months agoAdd a sample CGI script for testing effect of HTTP headers on the origin page
tyoshino@chromium.org [Fri, 23 May 2014 07:12:32 +0000 (07:12 +0000)]
Add a sample CGI script for testing effect of HTTP headers on the origin page


Review URL: https://codereview.appspot.com/98450047

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@802 4ff78f4a-9131-11de-b045-6380ec9940d4

12 months agoFix server_no_context_takeover implementation
tyoshino@chromium.org [Fri, 23 May 2014 07:10:10 +0000 (07:10 +0000)]
Fix server_no_context_takeover implementation

_deflater needs to be reset to None after generating the last frame using
current _deflater.


Review URL: https://codereview.appspot.com/98440047

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@801 4ff78f4a-9131-11de-b045-6380ec9940d4

12 months agoFix test function name: Frame -> frame
tyoshino@chromium.org [Thu, 22 May 2014 07:41:00 +0000 (07:41 +0000)]
Fix test function name: Frame -> frame

Review URL: https://codereview.appspot.com/98420049

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@800 4ff78f4a-9131-11de-b045-6380ec9940d4

12 months agoMake send_message() with end=False generate frame when permessage-deflate is enabled
tyoshino@chromium.org [Wed, 21 May 2014 02:00:43 +0000 (02:00 +0000)]
Make send_message() with end=False generate frame when permessage-deflate is enabled

Currently, data passed by send_message() with end=False is buffered inside the
deflater object. To be consistent with send_message()'s behavior when
permessage-deflate is not enabled, make it flush given data.

This CL also adds tests to check how permessage-deflate's implementation
generates fragments.


Review URL: https://codereview.appspot.com/95480043

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@799 4ff78f4a-9131-11de-b045-6380ec9940d4

12 months agoRefine pydoc of standalone.py
tyoshino@chromium.org [Wed, 30 Apr 2014 07:42:06 +0000 (07:42 +0000)]
Refine pydoc of standalone.py

- Refine instructions for TLS support
- Add underlines to headings
- Replace examples to ones with PYTHONPATH env setter
- Add note about how relative paths passed to TLS related parameters
  are resolved


Review URL: https://codereview.appspot.com/98800043

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@798 4ff78f4a-9131-11de-b045-6380ec9940d4

13 months agoRemove MozWebSocket support from console.html
tyoshino@chromium.org [Fri, 25 Apr 2014 06:21:26 +0000 (06:21 +0000)]
Remove MozWebSocket support from console.html


Review URL: https://codereview.appspot.com/90460044

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@797 4ff78f4a-9131-11de-b045-6380ec9940d4

13 months agoRemove HyBi 08 version protocol support
tyoshino@chromium.org [Wed, 23 Apr 2014 10:01:36 +0000 (10:01 +0000)]
Remove HyBi 08 version protocol support


Review URL: https://codereview.appspot.com/90490043

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@794 4ff78f4a-9131-11de-b045-6380ec9940d4

14 months agoAdd a simple handler cookie_wsh.py useful for cookie test
tyoshino@chromium.org [Tue, 25 Mar 2014 10:26:10 +0000 (10:26 +0000)]
Add a simple handler cookie_wsh.py useful for cookie test

Release note: Add a simple handler cookie_wsh.py useful for cookie test

Review URL: https://codereview.appspot.com/79430043

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@793 4ff78f4a-9131-11de-b045-6380ec9940d4

14 months agoSplit XHR benchmark code into xhr_benchmark_handler.py
tyoshino@chromium.org [Tue, 25 Mar 2014 05:34:58 +0000 (05:34 +0000)]
Split XHR benchmark code into xhr_benchmark_handler.py

Release note: [XHR benchmark tool] Split XHR benchmark code into xhr_benchmark_handler.py


Review URL: https://codereview.appspot.com/79420043

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@792 4ff78f4a-9131-11de-b045-6380ec9940d4

19 months agoPrint extensions attribute on open event.
tyoshino@chromium.org [Thu, 24 Oct 2013 07:28:58 +0000 (07:28 +0000)]
Print extensions attribute on open event.


Review URL: https://codereview.appspot.com/16280047

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@790 4ff78f4a-9131-11de-b045-6380ec9940d4

19 months agobenchmark.html typo fix
tyoshino@chromium.org [Fri, 18 Oct 2013 06:46:31 +0000 (06:46 +0000)]
benchmark.html typo fix


Review URL: https://codereview.appspot.com/14920043

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@788 4ff78f4a-9131-11de-b045-6380ec9940d4

19 months agoRename parameter names to follow the permessage-deflate spec change.
yhirano@chromium.org [Thu, 17 Oct 2013 04:17:15 +0000 (04:17 +0000)]
Rename parameter names to follow the permessage-deflate spec change.

Replace s2c_ and c2s_ with server_ and client_ respectively.


Review URL: https://codereview.appspot.com/14664044

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@787 4ff78f4a-9131-11de-b045-6380ec9940d4

20 months agoAttempt to print client cert info only when the client sends it.
tyoshino@chromium.org [Thu, 26 Sep 2013 08:25:35 +0000 (08:25 +0000)]
Attempt to print client cert info only when the client sends it.


Review URL: https://codereview.appspot.com/13308047

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@786 4ff78f4a-9131-11de-b045-6380ec9940d4

20 months agoAdd a _Deflater/_Inflater test against big random section input
tyoshino@chromium.org [Tue, 10 Sep 2013 03:11:59 +0000 (03:11 +0000)]
Add a _Deflater/_Inflater test against big random section input


Review URL: https://codereview.appspot.com/13381043

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@785 4ff78f4a-9131-11de-b045-6380ec9940d4

20 months ago[XHR benchmark tool] Verify Blob response
tyoshino@chromium.org [Tue, 10 Sep 2013 03:10:51 +0000 (03:10 +0000)]
[XHR benchmark tool] Verify Blob response

Release note: [XHR benchmark tool] Verify Blob response


Review URL: https://codereview.appspot.com/13585043

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@784 4ff78f4a-9131-11de-b045-6380ec9940d4

20 months agoGroup benchmark parameters into one dict.
tyoshino@chromium.org [Thu, 29 Aug 2013 02:27:31 +0000 (02:27 +0000)]
Group benchmark parameters into one dict.

Release note: n/a


Review URL: https://codereview.appspot.com/13272043

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@783 4ff78f4a-9131-11de-b045-6380ec9940d4

20 months agoAdd blob support to xhr_benchmark.html
tyoshino@chromium.org [Thu, 29 Aug 2013 02:26:23 +0000 (02:26 +0000)]
Add blob support to xhr_benchmark.html

Release note: Add blob support to xhr_benchmark.html


Review URL: https://codereview.appspot.com/13277043

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@782 4ff78f4a-9131-11de-b045-6380ec9940d4

21 months agoAdd XMLHttpRequest benchmark functionality
tyoshino@chromium.org [Tue, 27 Aug 2013 09:17:23 +0000 (09:17 +0000)]
Add XMLHttpRequest benchmark functionality

For two special path, pywebsocket serves as an HTTP server to help xhr_benchmark.html.

Release note: Add XMLHttpRequest benchmark functionality


Review URL: https://codereview.appspot.com/9738050

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@781 4ff78f4a-9131-11de-b045-6380ec9940d4

21 months agoFix wrong variable in verifyAcknowledgement function in util.js
tyoshino@chromium.org [Mon, 26 Aug 2013 05:10:47 +0000 (05:10 +0000)]
Fix wrong variable in verifyAcknowledgement function in util.js

Release note: bug fix in benchmark tool error handling


Review URL: https://codereview.appspot.com/12822046

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@780 4ff78f4a-9131-11de-b045-6380ec9940d4

21 months agoLog when get_extension_response is called on inactivated processor
tyoshino@chromium.org [Mon, 29 Jul 2013 08:12:14 +0000 (08:12 +0000)]
Log when get_extension_response is called on inactivated processor

Release note: n/a


Review URL: https://codereview.appspot.com/10921044

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@779 4ff78f4a-9131-11de-b045-6380ec9940d4

21 months agoComments on the available extension list and the extension getting method
tyoshino@chromium.org [Mon, 29 Jul 2013 07:55:46 +0000 (07:55 +0000)]
Comments on the available extension list and the extension getting method

Clarify that they're for server side only.

Release note: n/a


Review URL: https://codereview.appspot.com/11089043

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@778 4ff78f4a-9131-11de-b045-6380ec9940d4

22 months agoIntroduce window_bits constructor parameter to util._Inflate.
yhirano@chromium.org [Wed, 10 Jul 2013 08:19:44 +0000 (08:19 +0000)]
Introduce window_bits constructor parameter to util._Inflate.

This change enables us to delete a dirty hack in a Blink layout test.
See http://crbug.com/235822 .


Review URL: https://codereview.appspot.com/11099043

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@777 4ff78f4a-9131-11de-b045-6380ec9940d4

22 months agoMove functions that are useful also for xhr benchmark.
tyoshino@chromium.org [Wed, 10 Jul 2013 07:43:52 +0000 (07:43 +0000)]
Move functions that are useful also for xhr benchmark.

xhr benchmark tool is coming. This is preparation for it.


Review URL: https://codereview.appspot.com/10799045

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@776 4ff78f4a-9131-11de-b045-6380ec9940d4

22 months agoTest that permessage-deflate extension uses small window if specified.
tyoshino@chromium.org [Wed, 10 Jul 2013 07:37:18 +0000 (07:37 +0000)]
Test that permessage-deflate extension uses small window if specified.


Review URL: https://codereview.appspot.com/10826045

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@775 4ff78f4a-9131-11de-b045-6380ec9940d4

22 months agoComment that we always use _RFC1979Inflater that can accept data generated with wbits=15
tyoshino@chromium.org [Wed, 10 Jul 2013 07:04:11 +0000 (07:04 +0000)]
Comment that we always use _RFC1979Inflater that can accept data generated with wbits=15

Release note: n/a


Review URL: https://codereview.appspot.com/11091043

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@774 4ff78f4a-9131-11de-b045-6380ec9940d4

22 months agoRename c2s_max_window_bits related variables for readability
tyoshino@chromium.org [Wed, 10 Jul 2013 07:03:29 +0000 (07:03 +0000)]
Rename c2s_max_window_bits related variables for readability

Now we have this parameter in both client-to-server and server-to-client
direction. Variables we have now have confusing names.

Release note: n/a


Review URL: https://codereview.appspot.com/10962045

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@773 4ff78f4a-9131-11de-b045-6380ec9940d4

22 months agoMake echo_client.py announce c2s_max_window_bits capability
tyoshino@chromium.org [Wed, 10 Jul 2013 04:03:23 +0000 (04:03 +0000)]
Make echo_client.py announce c2s_max_window_bits capability

TEST=Tested connecting pywebsocket

Review URL: https://codereview.appspot.com/11038043

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@772 4ff78f4a-9131-11de-b045-6380ec9940d4

22 months agoAdd retry logic to the socket creation code in clients for testing.
tyoshino@chromium.org [Tue, 9 Jul 2013 13:22:58 +0000 (13:22 +0000)]
Add retry logic to the socket creation code in clients for testing.

Release note: n/a


Review URL: https://codereview.appspot.com/9040046

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@771 4ff78f4a-9131-11de-b045-6380ec9940d4

22 months agoRemove an obsolete parameter from _run_server and add some file comment.
tyoshino@chromium.org [Tue, 9 Jul 2013 12:43:54 +0000 (12:43 +0000)]
Remove an obsolete parameter from _run_server and add some file comment.

Release note: n/a


Review URL: https://codereview.appspot.com/8956043

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@770 4ff78f4a-9131-11de-b045-6380ec9940d4

23 months agoMove logging code to util.js
tyoshino@chromium.org [Fri, 31 May 2013 05:50:51 +0000 (05:50 +0000)]
Move logging code to util.js


Review URL: https://codereview.appspot.com/9711045

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@769 4ff78f4a-9131-11de-b045-6380ec9940d4

23 months agoMake eventsource.html report more info
tyoshino@chromium.org [Thu, 30 May 2013 03:13:16 +0000 (03:13 +0000)]
Make eventsource.html report more info

- Show note about --cgi_path parameter
- Print onopen and onerror event
- Add id to the stream


Review URL: https://codereview.appspot.com/9788045

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@768 4ff78f4a-9131-11de-b045-6380ec9940d4

2 years ago[echo_client] Exit when an extension is enabled and an old protocol which does not...
tyoshino@chromium.org [Wed, 1 May 2013 10:20:08 +0000 (10:20 +0000)]
[echo_client] Exit when an extension is enabled and an old protocol which does not support extensions is specified

Release note: Exit echo_client when an extension is enabled and an old protocol is specified.

Review URL: https://codereview.appspot.com/9072043

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@767 4ff78f4a-9131-11de-b045-6380ec9940d4

2 years agoRemove unnecessary line configuring server's stderr. test_version_check.
tyoshino@chromium.org [Wed, 1 May 2013 03:17:18 +0000 (03:17 +0000)]
Remove unnecessary line configuring server's stderr. test_version_check.

pywebsocket server doesn't output anything annoying for this test case.

Release note: n/a

Review URL: https://codereview.appspot.com/8955043

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@766 4ff78f4a-9131-11de-b045-6380ec9940d4

2 years agoAdd instruction how to configure WebSocket extensions to pydoc.
tyoshino@chromium.org [Tue, 30 Apr 2013 08:17:35 +0000 (08:17 +0000)]
Add instruction how to configure WebSocket extensions to pydoc.

Release note: mod_pywebsocket directory pydoc update. Added note about extension configuration

Review URL: https://codereview.appspot.com/8954043

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@765 4ff78f4a-9131-11de-b045-6380ec9940d4

2 years agoAdd permessage-deflate support to echo_client.py
tyoshino@chromium.org [Thu, 25 Apr 2013 14:12:16 +0000 (14:12 +0000)]
Add permessage-deflate support to echo_client.py

Release note: Add permessage-deflate support to echo_client.py

Review URL: https://codereview.appspot.com/8906043

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@764 4ff78f4a-9131-11de-b045-6380ec9940d4

2 years agoc2s_max_window_bits parameter for a client can be configured only if the client allow...
yhirano@chromium.org [Wed, 24 Apr 2013 01:16:26 +0000 (01:16 +0000)]
c2s_max_window_bits parameter for a client can be configured only if the client allows it.

Review URL: https://codereview.appspot.com/8911046

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@763 4ff78f4a-9131-11de-b045-6380ec9940d4

2 years agoAdd tests on the extension processor registry
tyoshino@chromium.org [Mon, 22 Apr 2013 09:04:48 +0000 (09:04 +0000)]
Add tests on the extension processor registry

Release note: n/a (test only change)

Review URL: https://codereview.appspot.com/8782045

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@762 4ff78f4a-9131-11de-b045-6380ec9940d4

2 years agoDefine a constant for sleep time for warming up the server.
tyoshino@chromium.org [Mon, 22 Apr 2013 07:41:12 +0000 (07:41 +0000)]
Define a constant for sleep time for warming up the server.

Release note: n/a (test only change)

Review URL: https://codereview.appspot.com/8782044

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@761 4ff78f4a-9131-11de-b045-6380ec9940d4

2 years agoRestore x-webkit-deflate-frame extension removed at r751.
yhirano@chromium.org [Mon, 22 Apr 2013 04:38:52 +0000 (04:38 +0000)]
Restore x-webkit-deflate-frame extension removed at r751.

The extension needs to be implemented for testing the blink implementation.

Review URL: https://codereview.appspot.com/8902045

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@760 4ff78f4a-9131-11de-b045-6380ec9940d4

2 years agoAdd tests for permessage-deflate in test_msgutil.py.
tyoshino@chromium.org [Fri, 19 Apr 2013 04:30:15 +0000 (04:30 +0000)]
Add tests for permessage-deflate in test_msgutil.py.

Since the existing tests for permessage-compress covers most of code path
used for permessage-deflate, I don't add the same ones, but just these simple
two cases.

Release note: n/a (test only change)

Review URL: https://codereview.appspot.com/8541048

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@759 4ff78f4a-9131-11de-b045-6380ec9940d4

2 years agoShorten test method names where it's clear which protocol is tested.
tyoshino@chromium.org [Thu, 18 Apr 2013 02:07:28 +0000 (02:07 +0000)]
Shorten test method names where it's clear which protocol is tested.

Review URL: https://codereview.appspot.com/8540047

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@757 4ff78f4a-9131-11de-b045-6380ec9940d4

2 years agoPrint time, filename and line number like google-glog to ease debugging rather than...
tyoshino@chromium.org [Wed, 17 Apr 2013 03:28:35 +0000 (03:28 +0000)]
Print time, filename and line number like google-glog to ease debugging rather than printing class name.

Review URL: https://codereview.appspot.com/8534046

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@756 4ff78f4a-9131-11de-b045-6380ec9940d4

2 years agoSplit EndToEndTest into smaller classes
tyoshino@chromium.org [Tue, 16 Apr 2013 11:13:04 +0000 (11:13 +0000)]
Split EndToEndTest into smaller classes

After this, I'm going to shorten test methods.

Release note: n/a (test only change)

Review URL: https://codereview.appspot.com/8792043

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@755 4ff78f4a-9131-11de-b045-6380ec9940d4

2 years agoAdd permessage-deflate tests on two-message cases.
tyoshino@chromium.org [Tue, 16 Apr 2013 08:42:50 +0000 (08:42 +0000)]
Add permessage-deflate tests on two-message cases.

Review URL: https://codereview.appspot.com/8537044

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@754 4ff78f4a-9131-11de-b045-6380ec9940d4

2 years agoRename extension processor classes to match extension identifier.
tyoshino@chromium.org [Tue, 16 Apr 2013 07:22:25 +0000 (07:22 +0000)]
Rename extension processor classes to match extension identifier.

Bonus: Remove commented out x-webkit prefixed extension registration code
    which now are never going to live.

Review URL: https://codereview.appspot.com/8576046

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@753 4ff78f4a-9131-11de-b045-6380ec9940d4

2 years agoAdd permessage-deflate support.
tyoshino@chromium.org [Tue, 16 Apr 2013 05:52:56 +0000 (05:52 +0000)]
Add permessage-deflate support.

Review URL: https://codereview.appspot.com/8666044

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@752 4ff78f4a-9131-11de-b045-6380ec9940d4

2 years agoFix extension parameter parsing code of deflate extensions.
tyoshino@chromium.org [Mon, 15 Apr 2013 05:40:49 +0000 (05:40 +0000)]
Fix extension parameter parsing code of deflate extensions.

They were not passing parsed integer value to deflate/inflate classes.

Release note: Fix broken extension parameter parsing code of perframe-deflate,
    x-webkit-perframe-deflate, permessage-compression and
Review URL: https://codereview.appspot.com/8589046

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@751 4ff78f4a-9131-11de-b045-6380ec9940d4

2 years agoFactor out framing part of deflate method of permessage-compress extension into a...
tyoshino@chromium.org [Thu, 11 Apr 2013 08:17:49 +0000 (08:17 +0000)]
Factor out framing part of deflate method of permessage-compress extension into a separate class.

It's going to be used for permessage-deflate implementation.

Release note: n/a (no behavior change)
Review URL: https://codereview.appspot.com/8411044

git-svn-id: https://pywebsocket.googlecode.com/svn/trunk/src@750 4ff78f4a-9131-11de-b045-6380ec9940d4