summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Change submodule's url to point to its git.baserock.org repobaserock/v0.6.0Francisco Redondo Marchena2014-10-241-1/+1
|
* Change protocol of git submodules, so that they can be clonedMark Doffman2014-09-291-1/+1
| | | | without SSL in baserock builds.
* Update to v0.6.0v0.6.0Solly Ross2014-02-183-2/+11
| | | | | | | *** NOTE *** This version of websockify will break existing code which sub-classes `WebsocketProxy` -- see pull requests #110 and #111
* README: update with general contact info.Joel Martin2014-02-031-0/+22
|
* Fix default log level in echo and load testsSolly Ross2014-01-302-2/+6
| | | | | | | | | | | | | Since we switched to using the `logging` module to log in pull request #100, none of the messages on the 'INFO' level were being shown from `tests/echo.py` and `tests/load.py`, since the default log level is 'WARNING'. Now, the log level is set to INFO in `tests/echo.py` and `tests/load.py`, to match the log level in the main websockify executable. Fixes #109
* README: fix wrap mode examples.Joel Martin2014-01-131-5/+6
|
* Merge pull request #111 from astrand/masterastrand2013-12-194-208/+317
|\ | | | | Refactor to use standard SocketServer RequestHandler design.
| * Merge remote branch 'upstream/master'Peter Åstrand (astrand)2013-12-190-0/+0
| |\ | |/ |/|
* | Prepare for fixing https://github.com/kanaka/websockify/pull/111Peter Åstrand (astrand)2013-12-191-110/+110
| | | | | | | | | | | | | | | | | | | | | | | | Move around functions and methods, so that connection-related and server-related stuff are close together. This patch just moves things around - it does not change anything at all. This can be verified with: git diff | grep ^- | cut -c 2- | sort > removed git diff | grep ^+ | cut -c 2- | sort > added diff -u removed added
| * Minor whitespace and layout tweaks, to reduce diff againstPeter Åstrand (astrand)2013-12-172-4/+5
| | | | | | | | upstream/master.
| * Merge remote branch 'upstream/master'Peter Åstrand (astrand)2013-12-170-0/+0
| |\ | |/ |/| | | | | Conflicts: websockify/websocket.py
* | Cherry-picked 4e3388964af9697496d2c5e000bb8559dfba87ad fromPeter Åstrand (astrand)2013-12-171-217/+217
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | astrand/websockify: Prepare for fixing https://github.com/kanaka/websockify/issues/71: Move around functions and methods, so that connection-related and server-related stuff are close together. This patch just moves things around - it does not change anything at all. This can be verified with: git diff websocket.py | grep ^- | cut -c 2- | sort > removed git diff websocket.py | grep ^+ | cut -c 2- | sort > added diff -u removed added
| * Merge remote branch 'upstream/master', after #110 was merged.Peter Åstrand (astrand)2013-12-165-5/+5
| |\ | |/ |/|
* | Merge pull request #110 from astrand/rename-self-clientastrand2013-12-168-29/+29
|\ \ | | | | | | Rename self.client and new_client - prepare for #72 / #111
| * | Rename new_client to new_websocket_client, in order to have a betterPeter Åstrand (astrand)2013-11-288-12/+12
| | | | | | | | | | | | | | | | | | name in the SocketServer/HTTPServer request handler hierarchy. Prepare for merge pull request #72. This work has been picked out of 7b3dd8a6f5ef26dbfd6c34a91600ea1613aefaa2 .
| * | Rename self.client to self.request, in preparation for merging pullPeter Åstrand (astrand)2013-11-284-17/+17
|/ / | | | | | | | | request #72. The standard Python SocketServer/BaseRequestHandler requires this name.
| * Follow up on 131f9ea645ac6f00d98743a420d168033f99063a: Proper loggingPeter Åstrand (astrand)2013-11-281-3/+7
| | | | | | | | in request handler class.
| * Merge commit '34a1b68d79a13c03aa63b5c4194796341c9383fe'Peter Åstrand (astrand)2013-11-281-4/+3
| |\ | |/ |/| | | | | * commit '34a1b68d79a13c03aa63b5c4194796341c9383fe': Clarify ssl module build for old python versions.
* | Clarify ssl module build for old python versions.Joel Martin2013-11-201-4/+3
| |
| * Merge commit 'a04edfe80f54b44df5a3579f71710560c6b7b4fc'Peter Åstrand (astrand)2013-11-284-107/+90
| |\ | |/ |/| | | | | * commit 'a04edfe80f54b44df5a3579f71710560c6b7b4fc': Added temp dir for unit test data and cleanup
* | Merge pull request #105 from dosaboy/topic/unit-test-cleanupJoel Martin2013-11-204-107/+90
|\ \ | | | | | | Added temp dir for unit test data and cleanup
| * | Added temp dir for unit test data and cleanupEdward Hope-Morley2013-11-144-107/+90
|/ / | | | | | | | | | | | | | | | | | | Unit test data will now go to a temporary dir that will be deleted once the test completes. The unit tests also setup a logger which will persist so that it can be inspected once tests complete. Also fixes a bug where instance var is missing from decode_hybi() Co-authored-by: natsume.takashi@lab.ntt.co.jp
| * Merge commit 'a47be21f9fa69ddf8d888ff9e3c75cdfc9e31c00'Peter Åstrand (astrand)2013-11-284-18/+358
| |\ | |/ |/| | | | | * commit 'a47be21f9fa69ddf8d888ff9e3c75cdfc9e31c00': Added unit tests for websocket and websocketproxy
* | Merge pull request #94 from dosaboy/topic/add-unit-testsJoel Martin2013-10-294-18/+358
|\ \ | | | | | | Added unit tests for websocket and websocketproxy
| * | Added unit tests for websocket and websocketproxyEdward Hope-Morley2013-10-294-18/+358
|/ / | | | | | | | | | | | | | | | | | | To run the unit tests just run tox from the top level directory which will try to run unit tests for most versions of python. Requires tox to be installed. To run tox for a specifice env, run tox -e<env> e.g. for python 2.7 run 'tox -epy27'. Co-authored-by: natsume.takashi@lab.ntt.co.jp
| * Merge commit 'c3acdc2e38f871e28ffda1847b4338c4b02296b8'Peter Åstrand (astrand)2013-11-282-4/+99
| |\ | |/ |/| | | | | * commit 'c3acdc2e38f871e28ffda1847b4338c4b02296b8': Adds optional TCP_KEEPALIVE to WebSocketServer
* | Merge pull request #93 from dosaboy/topic/set-keepalive-optionsJoel Martin2013-10-292-4/+100
|\ \ | | | | | | Adds optional TCP_KEEPALIVE to WebSocketServer
| * | Adds optional TCP_KEEPALIVE to WebSocketServerEdward Hope-Morley2013-10-162-5/+101
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TCP_KEEPALIVE is now enabled by default. Settings for KEEPCNT, KEEPINTVL and KEEPIDLE can be supplied when creating WebSocketServer and KEEPALIVE can also be disabled if required. Also adds new unit test for testing. Co-authored-by: natsume.takashi@lab.ntt.co.jp
| | * Merge commit '13c99bcf053f7f3af8ba84c0d963a9591e020f49'Peter Åstrand (astrand)2013-11-283-7/+6
| | |\ | |_|/ |/| | | | | | | | * commit '13c99bcf053f7f3af8ba84c0d963a9591e020f49': Fix search path construction in tests.
* | | Fix search path construction in tests.Joel Martin2013-10-293-7/+6
| | | | | | | | | | | | | | | | | | This way the tests can be run directly from within the tests directory and they might also have a chance of running on Windows (where the path separator is different).
| | * Merge commit 'b4e0b534d5d04d57265045b4baf49dd81555064b'Peter Åstrand (astrand)2013-11-280-0/+0
| | |\ | |_|/ |/| | | | | | | | * commit 'b4e0b534d5d04d57265045b4baf49dd81555064b': Fix crash when an import is missing
* | | Merge pull request #104 from stevschmid/patch-1Samuel2013-10-241-1/+1
|\ \ \ | | | | | | | | Fix crash when module is missing
| * | | Fix crash when an import is missingSteven Schmid2013-10-241-1/+1
|/ / / | | | | | | | | | | | | self.msg is not available when checking the imports. I had the problem on a host where numpy is missing (python 2.7.3).
| | * Merge commit '32b0567343aee7753b2b6be1bc1ee9a69657ba26'Peter Åstrand (astrand)2013-11-281-2/+2
| | |\ | |_|/ |/| | | | | | | | * commit '32b0567343aee7753b2b6be1bc1ee9a69657ba26': Fix syntax errors in other/websockify.rb
* | | Merge pull request #103 from dellsystem/masterSolly2013-10-211-2/+2
|\ \ \ | | | | | | | | Fix syntax errors in other/websockify.rb
| * | | Fix syntax errors in other/websockify.rbdellsystem2013-10-211-2/+2
|/ / /
| | * Merge commit '0e5c3ecfda3b1506b41412052db75d84df2b4ae7'Peter Åstrand (astrand)2013-11-281-1/+10
| | |\ | |_|/ |/| | | | | | | | * commit '0e5c3ecfda3b1506b41412052db75d84df2b4ae7': Handle SIGCHLD properly for multiprocessing
* | | Merge pull request #102 from DirectXMan12/masterSolly2013-10-211-1/+10
|\ \ \ | |/ / |/| | Handle SIGCHLD properly for multiprocessing (fixes #101)
| * | Handle SIGCHLD properly for multiprocessingSolly Ross2013-10-211-1/+10
|/ / | | | | | | | | | | | | | | | | This commit should fix #101 by enabling a special SIGCHLD handler for when multiprocessing is in use. The handler simply calls `multiprocessing.active_children()` (which in turn calls `_cleanup()`) upon receiving a SIGCHLD. Now, the `fallback_SIGCHLD` is only called when `multiprocessing` is not in use. See also #95.
| * Merge commit 'a61ae52610642ae58e914dda705df8bb9c8213ec'Peter Åstrand (astrand)2013-11-282-25/+69
| |\ | |/ |/| | | | | | | * commit 'a61ae52610642ae58e914dda705df8bb9c8213ec': fixed 1.8 compatibility bug for OpenSSL::SSL::SSLSocket#read_nonblock vs #readpartial tested in 1.8 and 2.0 adding SSL support and Ruby1.9 support
* | Merge pull request #86 from chrislee35/masterJoel Martin2013-10-152-25/+69
|\ \ | | | | | | OpenSSL Support for Ruby Module of Websockify
| * | fixed 1.8 compatibility bug for OpenSSL::SSL::SSLSocket#read_nonblock vs ↵chrislee352013-07-021-0/+10
| | | | | | | | | | | | | | | | | | #readpartial tested in 1.8 and 2.0
| * | adding SSL support and Ruby1.9 supportchrislee352013-07-022-25/+59
| | |
| | * Merge commit '477dce6cf86d61b20a394f3cbf3170e60d199658'Peter Åstrand (astrand)2013-11-282-54/+98
| | |\ | |_|/ |/| | | | | | | | | | | | | | | | | | | | * commit '477dce6cf86d61b20a394f3cbf3170e60d199658': websocket: use python logging module websocket: fix exception statement introduced by comment 903e3f06ee557 Adapted to new standard SocketServer RequestHandler design. For example, this means that self.i_am_client is not needed.
* | | Merge pull request #100 from alonbl/logJoel Martin2013-10-152-54/+92
|\ \ \ | | | | | | | | websocket: use python logging module
| * | | websocket: use python logging moduleAlon Bar-Lev2013-10-152-53/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | WebSocketServer is a library module, as such, it cannot assume it can write output to process stdout. Python logging module is designed in order to allow subscribers to handle the output out of modules. It is simple and generic mechanism to separate between data producer and data handling. Python logging API also has the nature of log level, so the verbose parameter can probably be obsoleted in favor of logging level. And of course the logging API has built in support for exception tracebacks, no need for manual format. Per upstream request a wrapper is created around python logging to enable shorter statements and optional replacement. Add --traffic parameter for traffic specific debug, this is required as it uses direct unformatted stdout output. Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
| * | | websocket: fix exception statement introduced by comment 903e3f06ee557Alon Bar-Lev2013-10-151-1/+1
|/ / / | | | | | | | | | Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
| | * Merge commit '4459824cc8196ad78fe9258b6c560ad46fe4cd52'Peter Åstrand (astrand)2013-11-271-99/+121
| | |\ | |_|/ |/| | | | | | | | | | | | | | * commit '4459824cc8196ad78fe9258b6c560ad46fe4cd52': websocket: do not exit at the middle of process websocket: restore signals after processing websocket: support SIGTERM as exit signal
* | | Merge pull request #98 from alonbl/apicleanupJoel Martin2013-10-141-100/+120
|\ \ \ | | | | | | | | Minor API cleanups
| * | | websocket: do not exit at the middle of processAlon Bar-Lev2013-10-141-9/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | WebSocketServer is a library module, as such it should not exit process but return from a method, allowing the caller to execute process show down. Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>