Commits

Author Commit Message Labels Comments Date
Denis Bilenko
update test__examples.py
Denis Bilenko
greentest/mysubprocess.py: add gevent_wait() method to Popen
Denis Bilenko
add examples/udp_client.py
Denis Bilenko
add examples/udp_server.py
Denis Bilenko
add server.DatagramServer; modify baseserver.BaseServer in such a way that makes it a good base class for both StreamServer and DatagramServer baseserver.py: - BaseServer no longer accepts 'backlog' parameter. It is now done by StreamServer. - BaseServer implements start_accepting() and stop_accepting() methods - BaseServer now implements "termporarily stop accepting" strategy - BaseServer now has _do_read method which does everything except for actually calling accept()/recvfrom() - pre_start() method is renamed to init_socket() - renam…
Denis Bilenko
test__pool.py: do not create functions inside tests, that confuses refcounter
Denis Bilenko
slightly shorten echoserver.py
Denis Bilenko
callbacks.c: update comments
Denis Bilenko
test__semaphore.py: add test_release_twice()
Denis Bilenko
Semaphore: avoid copying list of links; rawlink() no longer schedules notification Avoid copying list of links by maintaining a 'dirty' flag that causes _notify_links to restart iteration. This makes sure that we don't miss a recently added link because notification is already in progress. It is possible to notify the same links (that did not remove themselvers) more than once, but it's better than not notifying some links at all. rawlink() no longer schedules notification imm…
Denis Bilenko
greentest.py: simplify code
Denis Bilenko
greentest.py: make not matching 'switch_expected' into an exception
Denis Bilenko
greentest.py: when checking global refcount, expect negative and oscillating changes
Denis Bilenko
formatting change in test__server.py
Denis Bilenko
socket.py: remove _cancel_wait() helper function
Denis Bilenko
socket.py: fix close() method not to reference any globals
Denis Bilenko
pep8
Denis Bilenko
pep8
Denis Bilenko
update comment
Denis Bilenko
pep8
Denis Bilenko
pep8
Denis Bilenko
examples/psycopg2_pool.py: move closeall() up That way generic pool methods are grouped together.
Denis Bilenko
replace 'server.kill' with 'server.close'
Denis Bilenko
move '_start_accepting_if_started' to baseserver; remove 'kill' method (alias for 'close')
Denis Bilenko
test__core.py: add a few tests for argument checks in watchers
Denis Bilenko
add a comment
Denis Bilenko
core: add argument checks for io, timer and signal watchers without these checks passing invalid arguments would crash the process; with the checks it raises ValueError.
Denis Bilenko
core.loop: declare '_stop_signal_checker' as 'def', not 'cpdef'
Denis Bilenko
setup.py: support non-embedding mode for libev and c-ares. Thanks to Örjan Persson. Based on http://git.42mm.org/?p=python-gevent;a=blob;f=debian/patches/setup-with-cares-and-libev;h=798af501694f1d12cfdaf817bb2e7ad2f07bb2a0;hb=HEAD
Denis Bilenko
dnshelper.c: only include ares_setup.h if c-ares is embedded. Patch by Örjan Persson. http://git.42mm.org/?p=python-gevent;a=blob;f=debian/patches/do-not-include-ares-setup;h=28b1e91eba74da4bae913e99f6348d6c38f468eb;hb=HEAD
  1. Prev
  2. Next