certbot/letsencrypt/plugins
Jakub Warmuz 4cc0610679
Remove serve_forever2/shutdown2 (reduces probability of #1085).
I'm not even sure why `serve_forever2` and `shutdown2` were introduced
in the first place... It probably follows from my misconception about
the SocketServer module. After having studied the module again, I come
to the conclusion that we can get rid of my crap, simultanously
reducing probability of #1085 (hopefully down to 0)!

`server_forever` is used throughout tests instead of `handle_request`,
because `shutdown`, following docs, "must be called while
serve_forever() is running in another thread, or it will deadlock",
and our `probe_sni` HTTP request is already enough to kill single
`handle_request`.

We don't need to use any busy waiting block or `sleep` between serve
and shutdown; studying CPython source code leads to the conclusion
that the following construction is non-blocking:

```python
import threading, SocketServer
s = SocketServer.TCPServer(("", 0), None)
t = threading.Thread(target=s.shutdown)
t.start()
s.serve_forever()  # returns immediately
t.join()  # returns immediately
```
2015-10-29 21:02:21 +00:00
..
__init__.py Move letsencrypt.client to letsencrypt 2015-05-10 12:32:05 +00:00
common.py Merge branch 'simplefs' 2015-10-16 17:37:43 -07:00
common_test.py Merge branch 'simplefs' 2015-10-16 17:37:43 -07:00
disco.py plugin_ep.problem unittests 2015-10-24 14:09:34 -07:00
disco_test.py Fixed tests 2015-10-28 19:57:56 -07:00
manual.py Merge pull request #1079 from SwartzCr/issue_611 2015-10-28 16:43:28 -07:00
manual_test.py Make linter happy 2015-10-25 16:43:03 -05:00
null.py pep8 love 2015-10-16 22:25:20 +00:00
null_test.py Add null installer, integration tests for install/run 2015-06-26 13:26:09 +00:00
standalone.py Remove serve_forever2/shutdown2 (reduces probability of #1085). 2015-10-29 21:02:21 +00:00
standalone_test.py Standalone verifies ports for suported challenges only (fixes #1149). 2015-10-27 22:19:21 +00:00
util.py Merge remote-tracking branch 'github/letsencrypt/master' into standalone2 2015-10-12 19:36:46 +00:00
util_test.py 100% coverage is the goal, so add a test 2015-10-21 00:10:36 -07:00
webroot.py Removed no_simple_http_tls 2015-10-19 12:26:59 -07:00
webroot_test.py --webroot-root -> --webroot-path 2015-10-04 09:30:39 +00:00