summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Do the release ritual for pyptlib-0.0.6.HEADmasterGeorge Kadianakis2014-04-16
|
* Add a ChangeLog entry for #8956 and improve some docs.George Kadianakis2014-04-16
| | | | Original commit by Yawning Angel.
* Change "PROXY true" to "PROXY DONE"Yawning Angel2014-03-25
| | | | Per discussion in tor bug #8402.
* Add support for TOR_PT_PROXYYawning Angel2014-03-20
| | | | | | | | | | | | | | | | | | | | | | | | | A from the spec implementation of TOR_PT_PROXY and the related APIs. Added: * ClientTransportPlugin.reportProxySuccess(self) - Report proxy config success. * ClientTransportPlugin.reportProxyError(self, msg) - Report proxy config error. * ClientConfig.getProxy(self) - Obtain the configured proxy as a urlparse.urlsplit tuple (urlparse.SplitResult). This will return None if no proxy is configured. After calling urlsplit the code will correctly validate that it is in a form specified by checking: * scheme is one of http, socks4a, socks5. * hostname is a valid IP address (No resolution is done). * port is a valid port. * No path, query, or fragment is present. * Only the username is specified for socks4a. See also: * https://trac.torproject.org/projects/tor/ticket/8402 * https://gitweb.torproject.org/torspec.git/blob/HEAD:/proposals/ideas/xxx-pluggable-transports-through-proxy.txt
* use Windows JobObjects to have all children killed when the parent process ↵Ximin Luo2013-11-27
| | | | dies unexpectedly
* note INT-related failing tests on windowsXimin Luo2013-11-27
| | | | | - potential strategy to fix similar to https://trac.torproject.org/projects/tor/ticket/9330#comment:11 but using CTRL-C for SIGINT - also probably requires python fix for http://bugs.python.org/issue18040
* note TERM-related failing tests on windowsXimin Luo2013-11-27
| | | | - potential strategy to fix at https://trac.torproject.org/projects/tor/ticket/9330#comment:11
* Use already-defined constants from pywin32Ximin Luo2013-11-27
|
* refactor windows-specific code to have better structure and move imports to topXimin Luo2013-11-04
|
* factor signal handling out into its own classXimin Luo2013-11-04
|
* fix Access Denied error on windows XPXimin Luo2013-11-04
|
* - delete temporary global variable after useXimin Luo2013-10-23
|
* Update creationflags in list value of _Popen_defaults.David Fifield2013-10-23
| | | | | | | | | | | | | It looks like this code might have been originally written to use a dict, and the mswindows branch didn't get updated to work with a list of tuples instead. This is the exception I was getting on Windows: Traceback (most recent call last): File "obfs-flash-client", line 11, in <module> from pyptlib.util.subproc import auto_killall, Popen File "pyptlib\util\subproc.py", line 31, in <module> _Popen_defaults['creationflags'] |= subprocess.CREATE_NEW_PROCESS_GROUP TypeError: list indices must be integers, not str
* Do the release ritual for pyptlib-0.0.5.pyptlib-0.0.5George Kadianakis2013-09-30
|
* Add ChangeLog entry for #8979.George Kadianakis2013-09-30
|
* Unit tests for SMETHOD lines.George Kadianakis2013-09-14
|
* Write ARGS portion of SMETHOD line.George Kadianakis2013-09-14
|
* Rename environment parsing functions to get_* instead of validate_*.George Kadianakis2013-09-14
| | | | They actually parse and return values; they don't just validate.
* Parse the TOR_PT_SERVER_TRANSPORT_OPTIONS environment variable.George Kadianakis2013-09-14
|
* Do the release ritual for pyptlib-0.0.4.pyptlib-0.0.4George Kadianakis2013-09-10
|
* add a method to output debug dataXimin Luo2013-09-10
|
* add links to full module docsXimin Luo2013-09-05
|
* update doc and examples for method renameXimin Luo2013-09-02
|
* drop the distinction between "transports Tor wants" and "transports we support"Ximin Luo2013-09-02
| | | | | - idea imported from previous API but is unnecessary and just adds complexity - instead, only expose the latter in the API
* - rewrite some docs to use :returns: and :raises:Ximin Luo2013-09-02
|
* fix most pylint warningsXimin Luo2013-09-02
|
* - have client.reportMethodSuccess take an entire protocol string rather than ↵Ximin Luo2013-09-02
| | | | assuming socks
* add tests for the new APIXimin Luo2013-08-20
|
* declareSupports - make managedTransportVer like a tweakable setting that may ↵Ximin Luo2013-08-19
| | | | be used in future, and remove the unnecessary return value
* add default values to Config constructor so it's easier to instantiate in testsXimin Luo2013-08-19
|
* move getEnv away from being an unnecessary classmethodXimin Luo2013-08-19
|
* update documentation and examples to reflect the new APIXimin Luo2013-08-19
|
* fix typo and remove type-fudgingXimin Luo2013-08-19
|
* don't output error on unknown methods requestedXimin Luo2013-08-19
|
* refactor write and decision logic into a separate TransportPlugin classXimin Luo2013-08-19
| | | | - deprecate old API that created a new config for each method call
* move envvar parsing out into a @classmethod, fromEnv()Ximin Luo2013-08-19
|
* allow Config to direct their output elsewhere; useful for testsXimin Luo2013-08-19
|
* move allTransportsEnabled logic into parent Config classXimin Luo2013-08-19
|
* refactor Config API slightly, tests passedXimin Luo2013-08-19
| | | | | | | | - add a unified Config.declareSupports() method for use in initialisation - remove most of the check* methods, instead do this directly in declareSupports() - move common logic from {client,server}.init() into declareSupports() - add a unified envvar validation system using composable first-class functions - exceptions thrown during validation automatic trigger config.writeEnvError()
* Document the new checkClientMode().George Kadianakis2013-08-17
|
* add test_suite to setuptools config so `python setup.py test` works, remove ↵Ximin Luo2013-08-15
| | | | obsolete Makefile
* add a cleanup phase to killall() so that subproc plays nicely with Twisted ↵Ximin Luo2013-08-15
| | | | and other programs that don't auto-shutdown
* deprecate util.checkClientMode in favour of a much simpler ↵Ximin Luo2013-08-15
| | | | config.checkClientMode
* - add some extra comments and a warning for the temporary windows untidinessXimin Luo2013-08-07
|
* testing whether a process exists in a cross-platform way takes 40 lines, sighXimin Luo2013-08-07
|
* update changelog and make unix-specific stuff cross-platformXimin Luo2013-08-06
| | | | | - there is no cross-platform way to get child-pid so report it explicitly - see http://stackoverflow.com/questions/16323385/get-ppid-in-windows-with-python
* add Makefile to automatically run all testsXimin Luo2013-08-06
|
* add tests for subproc, and a few more minor features:Ximin Luo2013-08-06
| | | | | | - SINK to write to /dev/null - make the behaviour of trap_sigint play more nicely with signal.signal() - reap zombies after proc.kill()
* add a subprocess management module, which should make it easier to writeXimin Luo2013-08-02
| | | | | - composed plugins such as obfs-flash - the 2-SIGINT termination behaviour as specified in the PT spec
* Tweak MANIFEST.in and do the release ritual for 0.0.3.pyptlib-0.0.3George Kadianakis2013-02-18
|