[svn] / zc.ngi / trunk Repository:
ViewVC logotype

Log of /zc.ngi/trunk

View Directory Listing Directory Listing


Sticky Revision:

Revision 125008 - Directory Listing
Modified Fri Apr 6 17:08:57 2012 UTC (2 years, 4 months ago) by jim
Fixed
  Sending data faster than a socket could transmit it wasn't handled
  correctly.

Revision 123663 - Directory Listing
Modified Sat Dec 10 17:19:39 2011 UTC (2 years, 8 months ago) by jim
Bug Fixed
  zc.ngi.async listeners didn't provide the real address when binding
  to port 0.

Revision 121823 - Directory Listing
Modified Thu May 26 20:19:07 2011 UTC (3 years, 3 months ago) by jim
Refactored handle_write to:

- Gather input for send calls

- Handle errors more cleanly.

Revision 121158 - Directory Listing
Modified Wed Mar 30 06:46:34 2011 UTC (3 years, 5 months ago) by icemac
Conform to repository policy.

Revision 115765 - Directory Listing
Modified Wed Aug 18 22:11:41 2010 UTC (4 years ago) by jim
Bugs Fixed:

- The zc.ngi.async connections' ``write`` and ``writelines`` methods
  didn't raise errors when called on closed connections.

- The built-in connection adapters and handy adapter base class
  didn't implement __nonzero__.

Revision 115758 - Directory Listing
Modified Wed Aug 18 14:17:19 2010 UTC (4 years ago) by jim
Windows address in use error is totally different than on linux.

Revision 115757 - Directory Listing
Modified Wed Aug 18 14:10:47 2010 UTC (4 years ago) by jim
New Features:

- Connection objects have a new peer_address attribute, which is
  equivilent to calling ``getpeername()`` on sockets.

Bugs Fixed:

- Servers using unix-domain sockets didn't clean up socket files.

- When testing listeners were closed, handle_close, rather than close,
  was called on server connections.

Revision 115129 - Directory Listing
Modified Tue Jul 27 20:46:56 2010 UTC (4 years, 1 month ago) by jim
Updated test to work with Python 2.5.

Revision 115128 - Directory Listing
Modified Tue Jul 27 18:41:26 2010 UTC (4 years, 1 month ago) by jim
Cleaned up wordcount example:

- don't send END_OF_DATA any more.
- Use new async implementation wait method to wait for the async loop
  to get cleaned up.
- Don't pretend the wordcount example will be used with any
  implementation other than async.

Revision 115127 - Directory Listing
Modified Tue Jul 27 18:41:25 2010 UTC (4 years, 1 month ago) by jim
Bug Fixed:

- When using zc.ngi.testing and a server sent input and closed a
  connection before set_handler was called on the client, the input
  sent by the server was lost.

- By default, calling close on a connection could caause already
  written data not to be sent.  Now, don't close connections until
  data passed to write or writelines as, at least, been passed to the
  underlying IO system (e.g. socket.send).

(This means the undocumented practive of sending zc.ngi.END_OF_DATA
  to write is now deprecated.)

Revision 115124 - Directory Listing
Modified Tue Jul 27 14:42:39 2010 UTC (4 years, 1 month ago) by jim
Bug Fixed:

When using zc.ngi.testing and a server sent input and closed a
connection before set_handler was called on the client, the input
sent by the server was lost.

Revision 114933 - Directory Listing
Modified Thu Jul 22 17:58:00 2010 UTC (4 years, 1 month ago) by jim
whimper

Revision 114932 - Directory Listing
Modified Thu Jul 22 17:55:35 2010 UTC (4 years, 1 month ago) by jim
Removed convenient symbolic links because some combination of symbolic
links, a version of tar (I think) and distutils or setuptools caused
distributions to be broken. :(

Revision 114930 - Directory Listing
Modified Thu Jul 22 17:08:54 2010 UTC (4 years, 1 month ago) by jim
Fixed a testing bug.  The original test mostly tested the fix it was
supposed to, but not in a complete and completely sane way.

Revision 114926 - Directory Listing
Modified Thu Jul 22 16:57:25 2010 UTC (4 years, 1 month ago) by jim
Bug Fixed:

- There was a bug in handling connecting to testing servers that
  caused printing handlers to be used when they shouldn't have been.

Revision 114745 - Directory Listing
Modified Wed Jul 14 14:37:25 2010 UTC (4 years, 1 month ago) by jim
Added an experimental listener option to run each client (server
connection) in a separate thread.

Revision 114328 - Directory Listing
Modified Thu Jul 8 13:58:37 2010 UTC (4 years, 1 month ago) by jim
updated release date.

Revision 114325 - Directory Listing
Modified Thu Jul 8 12:35:58 2010 UTC (4 years, 1 month ago) by jim
Updated version.

Revision 114324 - Directory Listing
Modified Thu Jul 8 11:58:29 2010 UTC (4 years, 1 month ago) by jim
Ignore egg files.

Revision 114323 - Directory Listing
Modified Thu Jul 8 11:12:56 2010 UTC (4 years, 1 month ago) by jim
Refinements

Revision 114283 - Directory Listing
Modified Wed Jul 7 11:02:22 2010 UTC (4 years, 1 month ago) by jim
Avoid blocking-module deprecation warning while running tests.

Revision 114273 - Directory Listing
Modified Tue Jul 6 23:09:34 2010 UTC (4 years, 1 month ago) by jim
Reenable deprecation warnings in Python 2.7 and later. :(

Revision 114272 - Directory Listing
Modified Tue Jul 6 22:03:11 2010 UTC (4 years, 1 month ago) by jim
Fixed up some references to older interfaces.

Revision 114241 - Directory Listing
Modified Tue Jul 6 16:42:48 2010 UTC (4 years, 1 month ago) by jim
Updated hreader

Revision 114231 - Directory Listing
Modified Tue Jul 6 10:52:37 2010 UTC (4 years, 1 month ago) by jim
Renamed some doctest files to .test to emphsize their testiness.

Revision 114230 - Directory Listing
Modified Tue Jul 6 10:46:19 2010 UTC (4 years, 1 month ago) by jim
Fixed formatting.

Revision 114229 - Directory Listing
Modified Tue Jul 6 10:45:34 2010 UTC (4 years, 1 month ago) by jim
Fixed some spelling errors.

Revision 114228 - Directory Listing
Modified Tue Jul 6 10:35:28 2010 UTC (4 years, 1 month ago) by jim
Copied a trigger fix from ZEO.

Revision 114223 - Directory Listing
Modified Mon Jul 5 22:53:36 2010 UTC (4 years, 1 month ago) by jim
Got tests passing with Python 2.7.

Revision 114222 - Directory Listing
Modified Mon Jul 5 22:37:54 2010 UTC (4 years, 1 month ago) by jim
Fixed a spurious test failure.

Revision 114221 - Directory Listing
Modified Mon Jul 5 22:21:41 2010 UTC (4 years, 1 month ago) by jim
Removed some debugging hackery.

Revision 114220 - Directory Listing
Modified Mon Jul 5 22:20:58 2010 UTC (4 years, 1 month ago) by jim
Refactored ``zc.ngi.async`` thread management to make the blocking
APIs unnecessary. ``zc.ngi.async.blocking`` is now deprecated.

Made it possible to declare interfaces without zope.interface being
present and added interface declarations on the implementations.

Moved ConnectionFailed to tghe interfaces module.

Revision 114219 - Directory Listing
Modified Mon Jul 5 22:20:56 2010 UTC (4 years, 1 month ago) by jim
Added support for thr setup(tools) test command

Revision 114218 - Directory Listing
Modified Mon Jul 5 22:20:54 2010 UTC (4 years, 1 month ago) by jim
Added symbolic links for convencience.

Revision 114037 - Directory Listing
Modified Wed Jun 30 21:52:31 2010 UTC (4 years, 2 months ago) by asmith
more doc fixes

Revision 114036 - Directory Listing
Modified Wed Jun 30 21:18:56 2010 UTC (4 years, 2 months ago) by asmith
indentation fix

Revision 114035 - Directory Listing
Modified Wed Jun 30 20:58:38 2010 UTC (4 years, 2 months ago) by asmith
some more doc fixes

Revision 114034 - Directory Listing
Modified Wed Jun 30 20:39:12 2010 UTC (4 years, 2 months ago) by asmith
fix typo

Revision 113724 - Directory Listing
Modified Mon Jun 21 11:08:59 2010 UTC (4 years, 2 months ago) by jim
Added support for running multiple ``async`` implementations in
separate threads. This is useful in applications with fewer network
connections and with handlers that tend to perform long-lating
computations that would be unacceptable with a single select loop.

Revision 113717 - Directory Listing
Modified Sun Jun 20 15:54:30 2010 UTC (4 years, 2 months ago) by jim
New Features:

- New improved documentation

- Support for writing request handlers in an imperative style using
  generators.

- Cleaner testing interfaces

- Added a new blocking client request interface,
  ``zc.ngi.blocking.request``.  Other older blocking APIs are
  deprecated.

- Dropped support for Python 2.4.

Bugs Fixed:

- The ``Sized`` request adapter's ``writelines`` method was broken.

- There we a number of problems with error handling in the ``async``
  implementation.

Revision 113716 - Directory Listing
Modified Sun Jun 20 15:53:58 2010 UTC (4 years, 2 months ago) by jim
New Features:

- New improved documentation

- Support for writing request handlers in an imperative style using
  generators.

- Cleaner testing interfaces

- Added a new blocking client request interface,
  ``zc.ngi.blocking.request``.  Other older blocking APIs are
  deprecated.

- Dropped support for Python 2.4.

Bugs Fixed:

- The ``Sized`` request adapter's ``writelines`` method was broken.

- There we a number of problems with error handling in the ``async``
  implementation.

Revision 113715 - Directory Listing
Modified Sun Jun 20 15:53:56 2010 UTC (4 years, 2 months ago) by jim
Maintain todos separately

Revision 109536 - Directory Listing
Modified Mon Mar 1 10:54:17 2010 UTC (4 years, 6 months ago) by jim
Updated release info and removed seemingly redundant change note.

Revision 108435 - Directory Listing
Modified Sun Jan 24 13:24:08 2010 UTC (4 years, 7 months ago) by adamg
eeek, forgot to loghandler.uninstall()

Revision 108434 - Directory Listing
Modified Sun Jan 24 13:19:54 2010 UTC (4 years, 7 months ago) by adamg
typo

Revision 108433 - Directory Listing
Modified Sun Jan 24 13:19:12 2010 UTC (4 years, 7 months ago) by adamg
- Fixed bad logging of ``listening on ...``. The message was emitted
  before the actual operation was successful.
  Emits now a warning ``unable to listen on...`` if binding to the given
  address fails.

Revision 108432 - Directory Listing
Modified Sun Jan 24 12:52:19 2010 UTC (4 years, 7 months ago) by adamg
add changes

Revision 108430 - Directory Listing
Modified Sun Jan 24 12:25:53 2010 UTC (4 years, 7 months ago) by adamg
fixing a wrong logging message

Revision 108397 - Directory Listing
Modified Fri Jan 22 21:04:08 2010 UTC (4 years, 7 months ago) by adamg
cleaning win32 checking

Revision 108282 - Directory Listing
Modified Tue Jan 19 23:40:26 2010 UTC (4 years, 7 months ago) by jim
Updated release date.

Revision 108281 - Directory Listing
Modified Tue Jan 19 23:38:59 2010 UTC (4 years, 7 months ago) by jim
Updated changes.

Revision 108280 - Directory Listing
Modified Tue Jan 19 23:37:47 2010 UTC (4 years, 7 months ago) by jim
Make local copy of list to avoid errors on process exit.

Revision 108279 - Directory Listing
Modified Tue Jan 19 23:37:46 2010 UTC (4 years, 7 months ago) by jim
Write messages as a single string to avoid triggering nagle's
algorithm (and to avoid sending small packets in TCP_NODELAY is set).

Revision 108278 - Directory Listing
Modified Tue Jan 19 23:30:19 2010 UTC (4 years, 7 months ago) by jim
Updated docs.

Revision 108277 - Directory Listing
Modified Tue Jan 19 23:28:29 2010 UTC (4 years, 7 months ago) by jim
Don't use SO_REUSEADDR on windows. It means something different there.

Revision 108276 - Directory Listing
Modified Tue Jan 19 22:43:16 2010 UTC (4 years, 7 months ago) by jim
whitespace cleanup

Revision 108150 - Directory Listing
Modified Fri Jan 15 14:53:44 2010 UTC (4 years, 7 months ago) by adamg
add recent changes

Revision 108149 - Directory Listing
Modified Fri Jan 15 14:49:09 2010 UTC (4 years, 7 months ago) by adamg
fixing one fatal win32 problem and one win32-test failure

Revision 105332 - Directory Listing
Modified Wed Oct 28 14:35:25 2009 UTC (4 years, 10 months ago) by benji_york
prep for release

Revision 105331 - Directory Listing
Modified Wed Oct 28 14:21:47 2009 UTC (4 years, 10 months ago) by benji_york
- added missing "writelines" method to Lines adapter
- whitespace fixes
- small test coverage increase

Revision 103655 - Directory Listing
Modified Tue Sep 8 18:35:07 2009 UTC (4 years, 11 months ago) by jim
Don't add async listeners to socket map until they're fully set up.
(This is an issue because the async loop is in a separate thread.)

Revision 102401 - Directory Listing
Modified Thu Jul 30 20:16:58 2009 UTC (5 years, 1 month ago) by jim
Bug fixed:

- zc.ngi.async bind failures weren't handled properly, causing lots of
  annoying log messages to get spewed, which tesnded to fill up log
  files.

Revision 102400 - Directory Listing
Modified Thu Jul 30 20:15:39 2009 UTC (5 years, 1 month ago) by jim
Bug fixed:

- zc.ngi.async bind failures weren't handled properly, causing lots of
  annoying log messages to get spewed, which tesnded to fill up log
  files.

Revision 101409 - Directory Listing
Modified Thu Jul 2 20:39:07 2009 UTC (5 years, 2 months ago) by jim
Threads didn't have name attrs in older pythons

Revision 101406 - Directory Listing
Modified Thu Jul 2 20:05:00 2009 UTC (5 years, 2 months ago) by jim
Bugs fixed:

- The zc.ngi.async thread wasn't named. All threads should be named.

Revision 101328 - Directory Listing
Modified Mon Jun 29 17:15:58 2009 UTC (5 years, 2 months ago) by jim
Bugs fixed:

- zc.ngi.blocking didn't properly handle connection failures.

Revision 100616 - Directory Listing
Modified Wed Jun 3 17:54:15 2009 UTC (5 years, 3 months ago) by jim
*** empty log message ***

Revision 100418 - Directory Listing
Modified Tue May 26 15:32:19 2009 UTC (5 years, 3 months ago) by jim
Set version to 0 for trunk.

Rearranged to make version easier to edit.

Revision 100417 - Directory Listing
Modified Tue May 26 15:29:39 2009 UTC (5 years, 3 months ago) by jim
Fixed doc bug.

Revision 100415 - Directory Listing
Modified Tue May 26 15:24:35 2009 UTC (5 years, 3 months ago) by jim
Added sections for tests under different versions of Python.

Revision 100413 - Directory Listing
Modified Tue May 26 15:11:40 2009 UTC (5 years, 3 months ago) by jim
Updated release info.

Revision 100261 - Directory Listing
Modified Fri May 22 22:57:50 2009 UTC (5 years, 3 months ago) by jim
Added UDP support.

Also, adjusted APIs to make them a bit cleaner:
  - Now there's an IImplementation interface that defines the
    callables an implementation must supply.
  - Renamed 'connector' to 'connect'. The old name is still available.

Revision 99228 - Directory Listing
Modified Fri Apr 17 01:31:45 2009 UTC (5 years, 4 months ago) by benji_york
remove comment about poll2 having problems; it might somewhere, but not
on my box; not that it makes any difference, because it's not faster on
my box either, so no need to mention it at all

Revision 99206 - Directory Listing
Modified Wed Apr 15 22:16:39 2009 UTC (5 years, 4 months ago) by benji_york
- make buffer size a constant
- up the listen backlog to 255 (makes about a 3x performance differnce
  under heavy loads of short connections); should probably be
  configurable instead

Revision 99170 - Directory Listing
Modified Tue Apr 14 15:08:48 2009 UTC (5 years, 4 months ago) by jim
Carefully close log file to avoid tear-down errors on windows.

Revision 99169 - Directory Listing
Modified Tue Apr 14 15:08:18 2009 UTC (5 years, 4 months ago) by jim
Fixed some overly restrictive range checks that caused failures with
window's less precise clock.

Revision 99168 - Directory Listing
Modified Tue Apr 14 15:07:02 2009 UTC (5 years, 4 months ago) by jim
Added a missing event.clear to avoid spurious test failures.

Revision 99167 - Directory Listing
Modified Tue Apr 14 13:49:59 2009 UTC (5 years, 4 months ago) by jim
Cleaned up trailing whitespace.

Revision 99164 - Directory Listing
Modified Tue Apr 14 13:17:11 2009 UTC (5 years, 4 months ago) by jim
Cleaned up trailing whitespace.

Revision 99161 - Directory Listing
Modified Mon Apr 13 21:44:50 2009 UTC (5 years, 4 months ago) by jim
Fixed stupid typo.

Revision 99154 - Directory Listing
Modified Mon Apr 13 18:58:19 2009 UTC (5 years, 4 months ago) by jim
Cleaned up trailing whitespace.

Revision 99152 - Directory Listing
Modified Mon Apr 13 16:46:52 2009 UTC (5 years, 4 months ago) by jim
Cleaned up trailing whitespace.

Revision 99150 - Directory Listing
Modified Mon Apr 13 14:39:02 2009 UTC (5 years, 4 months ago) by jim
Fixed some api bugs that became effective with Python 2.6.

Revision 82629 - Directory Listing
Modified Tue Jan 1 17:38:59 2008 UTC (6 years, 8 months ago) by jim
Updated change log.

Revision 82628 - Directory Listing
Modified Tue Jan 1 17:38:01 2008 UTC (6 years, 8 months ago) by jim
New feature: Implementations are now required to log handler errors
and to close connections in response to connection-handler
errors. (Otherwise, handlers, and especially handler adapters, would
have to do this.)

Bug fixed: The testing implementation made muiltile simultaneous calls
to handler methods in violation of the promise made in interfaces.py.

Revision 82627 - Directory Listing
Modified Tue Jan 1 17:37:53 2008 UTC (6 years, 8 months ago) by jim
Ignore stuff.

Revision 76019 - Directory Listing
Modified Wed May 30 21:07:26 2007 UTC (7 years, 3 months ago) by jim
updated release info

Revision 76017 - Directory Listing
Modified Wed May 30 20:54:36 2007 UTC (7 years, 3 months ago) by jim
Sometimes, asyncore.dispatcher.accept can return None.  I don't know
how to provoke this in a test. Sigh.

Revision 72752 - Directory Listing
Modified Wed Feb 21 21:16:34 2007 UTC (7 years, 6 months ago) by jim
Updated release info.

Revision 72751 - Directory Listing
Modified Wed Feb 21 21:16:29 2007 UTC (7 years, 6 months ago) by jim
Removed unused file.

Revision 72263 - Directory Listing
Modified Tue Jan 30 19:30:32 2007 UTC (7 years, 7 months ago) by jim
Updated to current bootstrap.py

Revision 71766 - Directory Listing
Modified Sun Jan 7 14:21:48 2007 UTC (7 years, 7 months ago) by jim
Added a (hysterically poorly named) writelines method to allow
iteratibles to be passed to connections for output.

Added a new ConnectionHandler method to allow an implementation to
report errors to an application asynchronously. The main use case for
this is in handling errors from iterators passed to writelines.

Added a blocking I/O API to simplify writing some kinds of
applications.

Finished transition to rule that setHandler can only be called from
callbacks by eliminating some unnecessary locking. (The rules for
allowable callbacks need to be fleshed out a little bit more to deal
with the special case of connections created without a callback, for
example using blocking.connect.

Revision 71620 - Directory Listing
Modified Wed Dec 20 15:34:26 2006 UTC (7 years, 8 months ago) by amos
More spelling fixes.

Revision 71512 - Directory Listing
Modified Sun Dec 10 06:36:13 2006 UTC (7 years, 8 months ago) by amos
Spelling corrections.

Revision 70537 - Directory Listing
Modified Wed Oct 4 17:38:10 2006 UTC (7 years, 10 months ago) by jim
Added a simpler output formatter.

Revision 70470 - Directory Listing
Modified Mon Oct 2 11:10:43 2006 UTC (7 years, 11 months ago) by jim
Don't try to use the asyncore select.poll support because:

- It doesnt' work in Python 2.3

- Doesn't seem to be any faster when it does work (might even be
  slower)

- select is more tried and true.

Maybe someone with more network foo can improve this or, better yet,
provide a better implementation altogether.

Revision 70469 - Directory Listing
Modified Mon Oct 2 11:10:41 2006 UTC (7 years, 11 months ago) by jim
Make the expected output a bit less specific since we get slightly
different connection-failure modes between Python 2.3 and later versions.

Revision 70468 - Directory Listing
Modified Mon Oct 2 11:10:39 2006 UTC (7 years, 11 months ago) by jim
Added setuptools-proofing code.

Revision 70467 - Directory Listing
Modified Mon Oct 2 11:10:37 2006 UTC (7 years, 11 months ago) by jim
Added code from tests.test_async_cannot_connect

Revision 70390 - Directory Listing
Modified Tue Sep 26 16:16:29 2006 UTC (7 years, 11 months ago) by jim
Fixed a bug in handling connections.  I/O was done in the thread
initiating the connection.  This is a no no. Only the main-loop thread
should do I/O.  This, and differences in the way select for connecting
sockets work on Linux (relative to Mac OS X) caused connections to
fail in some cases.  Ultimately, this was a threading bug as the code
expects all I/O and handler calls to be done from the loop thread.

Added exception handlers to prevent broken application handlers from
bringing down the loop thread.

Revision 70389 - Directory Listing
Modified Tue Sep 26 16:16:27 2006 UTC (7 years, 11 months ago) by jim
Added lots of additional logging to help with debugging.

Revision 70388 - Directory Listing
Modified Tue Sep 26 16:16:23 2006 UTC (7 years, 11 months ago) by jim
Debuggibg script.

Revision 70267 - Directory Listing
Modified Wed Sep 20 20:50:45 2006 UTC (7 years, 11 months ago) by jim
Updated package name.

Revision 70077 - Directory Listing
Modified Fri Sep 8 19:01:51 2006 UTC (7 years, 11 months ago) by jim
Added a sized-message adapter.

Revision 70076 - Directory Listing
Modified Fri Sep 8 19:01:49 2006 UTC (7 years, 11 months ago) by jim
Fixed some bugs in connector error handling.

Revision 70075 - Directory Listing
Modified Fri Sep 8 19:01:47 2006 UTC (7 years, 11 months ago) by jim
Allow setHandler to be called multiple times, but only in response to
a call from an implementation.

Revision 69400 - Directory Listing
Modified Fri Aug 11 12:55:34 2006 UTC (8 years ago) by jim
Initial version

Revision 69363 - Directory Listing
Added Mon Aug 7 13:31:22 2006 UTC (8 years ago) by jim
Network Gateway Interface

Sort log by:

zope.org Infrastructure
ViewVC Help
Powered by ViewVC 1.0.3