1. 12 Sep, 2002 6 commits
    • Guido van Rossum's avatar
      Change log() to cause exactly one write() call to _log_dest. This · b3a1c826
      Guido van Rossum authored
      should fix the problem that messages from different processes or
      threads could be intermingled.  The code was rewritten to build up the
      lines of the error message in a list which is joined by "\n"
      characters at the end.
      b3a1c826
    • Guido van Rossum's avatar
      Fix for Win2K: add errno.WSAEINVAL to _CONNECT_OK (the possible errno · a5566670
      Guido van Rossum authored
      values that connect_ex() may return when we're connected).  This seems
      to resolve the last hangs observed on Win2K.  There are still
      (unrelated) hangs on Win98 though.
      a5566670
    • Guido van Rossum's avatar
      Log setUp() in more places. · fda3f6e4
      Guido van Rossum authored
      fda3f6e4
    • Guido van Rossum's avatar
      First part of changes to fall back to a read-only connection when a · f2f194a8
      Guido van Rossum authored
      read-write connection is not available.  This refactors
      ClientStorage.notifyConnected() into two functions, testConnection()
      and notifyConnected().  testConnection creates the RPC stub and calls
      the register() method; it returns the stub plus a flag indicating
      whether this connection was preferred or sub-optimal.  If the
      register() method raises ReadOnlyError, and the new option
      read_only_fallback was true on the ClientStorage constructor, it is
      retried with its read_only argument set to 1, and the stub is returned
      with the sub-optimal flag.  notifyConnected() now receives the stub
      returned by testConnection(), and starts the verification as before.
      
      XXX The read_only_fallback  feature is not yet tested.
      
      XXX More work is needed; when a suboptimal connection is used, the
      ConnectThread must stay around trying to get a preferred connection,
      and then it must switch connections on the ClientStorage (how???).
      f2f194a8
    • Guido van Rossum's avatar
      Took care of a long-time annoyance: the StorageServer.py file has two · c39a56ea
      Guido van Rossum authored
      different classes that both define a register() method, with different
      signatures.  Rename StorageServer.register() to
      register_connection().  Also rename its newConnection() method to
      new_connection(), for naming consistency.
      c39a56ea
    • Guido van Rossum's avatar
      A bunch of renamings and other small changes to make the code a little · ec80a2e8
      Guido van Rossum authored
      more understandable.
      
      Got rid of the Connected() exception -- connect(), now renamed to
      try_connect(), returns a 1/0 result instead of raising Connected() to
      indicate success.
      ec80a2e8
  2. 11 Sep, 2002 15 commits
  3. 10 Sep, 2002 9 commits
  4. 09 Sep, 2002 6 commits
  5. 08 Sep, 2002 4 commits