Pyro Change Log (archive)
The recent Pyro versions can be found in the regular change log.
Pyro 0.1 has been lost in the dust. It wasn't suited for publication anyway, I guess :-)
Pyro 0.2
First working release. Only static proxies and very little configurability.
Pyro 0.3
- MAJOR: added Dynamic Proxies! Clients don't need to have a precompiled proxy file available any more! Check out
core.getProxyForURI/DynamicProxy
.
- MAJOR: reworked the configuration possibilities. Check out
__init__.py
.
- Moved config items to a class in
__init__.py
. They are accessed using
'Pyro.config.<item>
'.
- Made the port and broadcast port configurable independently. The command lines now accept options to specify
either or both ports.
- naming: added delay in broadcast loop (wait a little for replies to arrive), Naming Service now returns
PyroErrors instead of regular exceptions.
- core: Cleaned up the Pyro exception passing, added
DynamicProxy
and
getProxyForURI
- pyroc: fixed bug in method output code (could forget a comma)
- nsc: fully rewrote the parsing code to use the
util.ArgVParser
- scripts: the Window
.bat
files now use %$
- added
util.py
, which contains a basic sys.argv
parser like
getopt()
.
Pyro 0.4
- naming: changed broadcast server to reflect changes in Python 1.5.2's
SocketServer
module. Pyro
now requires this new SocketServer
module (which works with previous Python versions, too, so you
could only replace the SocketServer
module and keep the rest of your Python installation intact).
- naming: fixed bugs when reporting exceptions ('entry already exists' and 'not found').
- util: added
getUUID
function, and a script genuuid
.
- core: Pyro objects are now identified by a full UUID, instead of a simple Python
id()
. This should
prevent nasty object ID problems, especially later when persistent naming and object activation will be
implemented.
Pyro 0.5
- MAJOR: the Pyro Naming Service now is a Pyro object itself, too. It can be accessed through its Pyro
interface.
- More specific exceptions (
ProtocolError, URIError, DaemonError, NamingError
...)
- It is now possible to connect objects without the presence of a Naming Service.
- core: the Daemon can now handle requests for others too, by a callback mechanism. Also removed up the
server-side exception trace info when the exception is generated on purpose, and added a nice message when the
daemon cannot be started.
- naming: many changes to make the Name Server a Pyro object itself. Finding the NS is now done through the
NameServerLocator
, which returns a regular Pyro proxy for the NS. No NameServerClient
is
needed anymore.
- util: tweaked the way the timestamp in URIs is generated.
- config: more configurable items.
- scripts:
Pyroc.bat
now uses %$
, too (oops!)
Pyro 0.6
- Added
xnsc
, a naming service control tool with a GUI (uses Tkinter
).
- The naming service can be launched in 'persistent mode': it will keep the naming directory in a persistent
database on disk. EXPERIMENTAL!
- core: added 2 configuration variables in
Pyro.config
: PYRO_PATH
and
PYRO_STORAGE
.
- core: added method to
ObjBase
to set a fixed (persistent) object UUID.
- core: slight change in the init code of
PyroURI
, it can now be created directly from a URI string,
instead of using initFromString
.
- core: the
Daemon
now has preliminary support for persistent objects:
connectPersistent
and disconnectPersistent
methods were added. LIKELY TO CHANGE!
- naming: added a persistent name server class
PersistentNameServer
. Also added some code to deal
with this when using the 'ns
' command line tool: a new option '-db
' has been added to
specify persistent mode.
- naming: the broadcast server now binds on '' instead of the hostname. This appears to be more compatible (on
some systems it was impossible to connect to the broadcast server).
- naming: implemented graceful shutdown command. The server also uses a timeout loop for the requests (because
otherwise ^C wouldn't break gracefully on WinNT - Duh).
- scripts:
nsc
(and xnsc
) now print a sorted list (and have the shutdown command).
- scripts: the
.bat
files now won't echo the python command anymore.
- utils:
ArgParser
changed to use None
instead of 1
when no arguments are
given to a certain option.
- test:
testclient
will use dynamic proxy automatically if no static proxy is found. Also, it will
try a direct connect if the NS lookup by broadcast fails.
Pyro 0.7
- bumped all versions to 0.7
- NOTE: because of some changes you will have to generate your proxies again with
pyroc
!
- core: separated the Exception types and the protocol adapters to
errors.py
and
protocol.py
.
- util: added a
Logger
object, Log
. It is used throughout Pyro to log messages,
warnings and errors. You can configure the logfile and the trace level settings with some new configuration
options. Ofcourse you can use it for your own logging purposes too.
- init: changed the way configuration items are set up. If a corresponding environment variable exists, that
value is used. Otherwise the default applies. This works for all configuration options except
PYRO_NS_NAME
because that is a registered name and should not be changed.
- naming: the naming server now writes its URI to a special output file. This can be used to contact the naming
server if you can't use the broadcast locator for some reason.
- uuids: renamed UUID to GUID (Globally Unique ID). You can never be sure that your ID is Universally Unique, so
I changed the name. Also, the
genuuid
scripts have been renamed to genguid
.
- changed default pickling mode to binary, to improve performance. A new configuration option lets you choose
between ASCII or binary.
- pyroc: fixed a problem where the '
self
' argument of a member function had a different name. Pyroc
now uses 'S
' everywhere.
- pyroc: added support for inherited classes. A module within a Python package is not yet supported as
input!
- pyroc: explicit checks against special Python methods
__xxx__
. They are not allowed in the proxy
code.
- MAJOR documentation update.
Pyro 0.8
- A few fixes in the source comments.
- Added separate user logging facility and fixed small bug in logger code (it was too picky on the
arguments).
- Moved some protocol dependent code from
core.py
to protocol.py
- New exception model! See documentation! Basically, every exception on the server side will be catched and
raised on the client side.
- Naming server and the
nsc
and xnsc
tools are stricter with the names and URIs they
allow.
- GUIDs are now 128 bit (instead of 144) and Pyro can use Windows GUIDs on the Windows platform. This is
configurable trough a new configuration item
PYRO_USE_WIN32GUID
. This is not the default and
will work only on the Windows platform, because the Python COM extension is used for this.
- New
genguid
script with '-w
' argument to generate a Windows GUID if possible.
- Fixed some things to allow for special 'localhost' optimization (the reduced overhead of some network
implementations when using 'localhost' instead of the real hostname). The changes are:
- Pyro daemon now binds on '' instead of hostname. Previously, URIs with the 'localhost' hostname couldn't be
bound.
- The
PyroURI
class has a new optimizeLocalhost
method, which -if possible-
optimizes the URI for localhost addressing.
This also paves the way for more optimizations might be added when Pyro detects a local URI. (for instance,
using IPC instead of going trough the network)
- Implemented Delegate pattern for remote object implementations. Instead of subclassing your object
implementation from
Pyro.core.ObjBase
, you just create a Pyro.core.ObjBase
object and
tell it to use another object as a delegate.
- New
ArgParser
in util.py
, to support more convenient script arguments. A few scripts
have slightly altered syntaxes now, which should be more convenient. The old syntax should still work however.
- Documentation updates. Major addition is the new chapter with a practical guide about how to develop Pyro
programs.
Pyro 1.0
- MAJOR: Reimplemented the PYRO protocol. It now uses a MUD-like system instead of a webserver-like system. The
protocol used to create a new socket connection for each method call. This is inefficient and resource hungry. The
new implementation uses a single socket for each Pyro object, and all method calls and replies are passed over this
connection. The connection remains active until the object is no longer needed. The new implementation no longer
has the serious problem that the previous implementation had on most machines: when a lot of method calls were
made, the system would crash with some sort of 'resource unavailable' or 'out of memory' error. The new protocol is
also faster than the previous one on all systems.
- Because of the new protocol, I think Pyro now deserves the version 1 status: bumped all version numbers to
1.0
- The Pyro
Daemon
inherits from the new TCPServer
base class (in
protocol.py
). This server replaces the SocketServer.TCPServer
. The new server keeps a
list of active connections, while the old one operated like a webserver: it created a new socket connection for
each request.
- Pyro Daemon has been adapted to the new protocol.
- NOTE: The new PYRO protocol is incompatible with the older versions. Communication is
impossible between different Pyro versions. You should upgrade all Pyro installations to the new version. However,
user code does not have to be changed. Old code still runs on top of the new implementation (the API has
not been changed).
- The Windows .bat scripts now use
#*
instead of #$
(which didn't work on the standard
Windows95/NT command prompt).
xnsc
handles communication errors better.
- Organized the tests in the
test
directory and added some readme files. Also added some more
tests/examples.
- Moved some socket code out of other modules to
protocol.py
. Now only naming.py
and
protocol.py
have socket code.
- Removed the
NULLAdapter
.
- Removed the pickling of NS system commands. They're simple strings now.
- Added socket send/receive helper functions in
protocol.py
for robust data transmission. The new
protocol code uses them. Performance is lower but the new code should guarantee correct behaviour even at high
network loads with many packet losses and fragmentations.
- New exceptions
SocketClosedError
and ServerFullError
.
- Removed
RemotePyroException
(unused).
- Small change in the
xnsc
GUI: better resizing
- The new protocol enforces a limit on the number of simultaneous connections to each Pyro daemon. This is for
protection of the server machine. There is a new configuration item
PYRO_MAXCONNECTIONS
that sets this
limit. Currently the default is 200.
- The
unregister
method of the naming service now raises a NamingError
when the name is
not known. I added this because usually this signals a typo in the calling code (it should never unregister an
unknown name).
- Documentation updates; manual is finished except for the implementation chapter.
Pyro 1.1
- MAJOR: Naming Service now has a hierarchical namespace. It has groups, which can contain other
groups or names. By default, a dot ('.') in a name is the group separator, so that "group1.group2.name"
is a hierarchical name. Notice that this is much like DNS's host/domain name scheme, but in
reverse order, rather like a directory
structure in a disk file system. The big gain from all this is that you can have different "domains"
(namespaces) in your Pyro environment. With a simple change of the default namespace group your
system uses a different "domain"
and the object names will not interfere with other systems (provided your namespace group is unique).
For an application of this, see the new test programs, which now all use the ':test' namespace group.
Also, it opens the gates for an even more sophisticated naming service: a distributed federated hierarchical
nameservice (wow!! :-)
- The default or de facto namespace group is ":Default". This means that Pyro code that does
not (yet) use the new naming scheme will wind up registering all its object names in this namespace
group. That's nice because this is a simple way to avoid name clashes with legacy Pyro code and
new code.
- Adapted the NS proxy to enforce the default group on all names that are not absolute from the root. It is now
required that all names passed to the NS are absolute (fully expanded), the hand coded NS proxy takes care of this.
Note that a proxy obtained for the NS by other means does not have this feature and will likely break your
code! Notably, the use of a dynamic proxy for the NS will no longer work correctly. Always use the static
proxy from the
naming
module.
- Added configuration item
PYRO_NS_GROUPSEP
, which is the character that separates groups in names.
By default it is a dot ('.'), but if this proves incompatible with existing naming schemes (that use dots in the
names), just change it to something else. Notice that this item is only examined once: at startup time.
You have to restart the Naming Service if you change this item.
- Added configuration item
PYRO_NS_DEFAULTGROUP
, which is the default group name in which names are
located. This simplifies partitioning your name space greatly. Notice that the Name Server proxy code is hand
crafted to enforce this name.
- Added configuration item
PYRO_NS_ROOTCHAR
, which is the default escape character at the beginning
of names, which indicates the name is absolute from the root.
- Changed the config item for the name server name to include a root character. Existing code should not break
(if it does, you probably didn't use
PYRO_NS_NAME
...
- Extended the name server object with three new remote methods for hierarchical naming support:
createGroup
, deleteGroup
and list
. Furthermore, status
has been
renamed to flatlist
. This suggests better what it does: return a flat dump of the namespace.
- Extended
nsc
and xnsc
with the new naming service features: list,
creategroup and deletegroup commands. (The old list command was renamed to
listall).
- Simplified dynamic proxy. It used to create a invocation object with each method call, this is no longer
so.
- Fixed bug in
protocol.py
where a KeyError
in a method invocation was always treated
as if a method call on an unknown object was tried, even when the object was correct (but raised a
KeyError
)
- Naming service will no longer crash when an unexpected exception occurs while it is running. It will log and
print the error and resume operations. A ctrl-c (
KeyboardInterrupt
) will still abort it, however, as
will sending a shutdown command.
- Small change in the Daemon in
core.py
. If a ProtocolError is detected (for instance, an invalid
header), the connection is dropped and operations are resumed. Pyro used to block or crash when a non-Pyro client
connected, such as a plain telnet or a web browser pointed at Pyro's socket.
- Test servers and clients are now using common code bases. They're registering their names in
a new "
:test
" group (namespace) too, to help avoid conflicts with your
own names. Servers will no longer crash if their name is already registered (they just register
again).
- Fixed a few small errors in some of the test programs, and created an electronic banking example to be a nice
starting point for Pyro applications.
- Fixed bug in some default arguments to functions, where config items were used. Now they are parsed at use
instead of at module import time.
- Added '
-k
' switch to ns
that will start the NS in a mode in which it ignores shutdown
requests sent by nsc
. This is a crude form of security, to protect the NS for malicious
shutdowns.
- Documentation updates about the new naming scheme.
- New example added that uses the new naming functions.
- Configuration files! You can now use a configuration file that contains all required Pyro config options. It's
no longer necessary to use a big list of environment variables.
- New configuration item
PYRO_CONFIG_FILE
. Only useful as environment variable, it points to the
configuration file Pyro has to use.
Pyro 1.2
- Fixed bug in TCPserver code (could skip connections). Please update all Pyro installations because this was a
rather nasty bug.
Daemon.connect
now returns the URI it connects the object as. This is convenient for servers that
want to use the URI immediately without having to consult the nameserver.
- It's now possible to get/set attributes on Pyro objects with normal Python syntax! (changes to
ObjBase
and new DynamicProxyWithAttr
) You have to update all Pyro installations if
you want to use this new feature. If you don't use it, Pyro 1.2 should work together with version 1.1. Notice
that there is a performance hit of a few percent when you use DynamicProxyWithAttr
instead of the
regular DynamicProxy
to support the attribute feature.
- Server objects can now create new Pyro objects and marshal Proxy objects to the clients! (changes to
DynamicProxy
: it delays binding until actually needed, and they can now be safely pickled).
- Added two new examples to show the use of the new attribute getting/setting, and the creation of new Pyro
objects on the server.
- Fixed bug in proxy code: nested method calls didn't work. For instance,
obj.setCount(obj.getCount()+1)
now works correctly.
- Daemons (servers) now have a port range. This means that they try to obtain a network port within a
range, instead of a single configured port as it was before. The port range allows you to start multiple
daemons/servers on a single machine, they now automatically select the next available network port.
- New configuration item for the port range:
PYRO_PORT_RANGE
.
- Upgraded
pyroc
to 1.2; static proxies now also support direct attribute access.
- Documentation updates for new features.
Pyro 1.3
- Removed the
DaemonSlave
class. Moved it into the Daemon
class. Also required small
change to TCPServer
.
- GUID format changed: internally, GUIDs are now treated as a 128 bit binary number (represented as a string of
16 8-bit characters). This saves memory and network bandwidth. Visually, the number is printed as 4 chunks of
unsigned 32 bit hex, separated by a dash.
- Because of the previous change, the PYRO protocol is no longer compatible with the previous versions.
It identifies itself with version 1 rev 3 and raises "incompatible version" exceptions if
you try to connect with other protocol versions. Please update all Pyro installations to version
1.3
- To handle versioning things better, a few changes in
protocol.PYROAdapter
were also
necessary.
- Added optional hostname argument to
TCPServer
and Pyro.core.Daemon
.
The
ns
command has a new option "-n" to specify a specific hostname to bind the server
on.
- Removed
optimizeLocalhost
method from PyroURI
- URIs no longer use hostnames, they now encode the IP addresses directly. This solves some problems when a DNS
service is not available.
PyroURI
consequently has an address
member instead of the
previous host
member. There are some small changes throughout the code to support this.
- Removed 1.5.2 dependency on
os.path.abspath
.
- Fixed bug in Daemon
handleRequest
loop: in contrast to what the documentation says, it didn't
return after a request had been processed. It now does.
- WIN32 GUIDs have been removed, and the corresponding configuration item too
(
PYRO_USE_WIN32GUID
).
Pyro 1.4
- One word: multithreaded. A few changes in the
TCPServer
allows it to run in multithreaded
mode on systems that have Python threads. Please read the Rules and Limitations chapter for more
information. Note that the multithreaded capabilities have not yet been tested very much and probably aren't
very stable.
- Added
PYRO_MULTITHREADED
config item to specify whether a Pyro server should be multithreaded or
single threaded. It defaults to 1 (multithreaded) on systems that support this.
- Fixed a socket bind() error in the NS; it now correctly pays attention to a supplied specific hostname to bind
the server on (the BroadcastServer still used to bind on
''
- fixed).
- Removed a socket bind() call from the
NameServerLocator
.
- Fixed small typo in
xnsc
: the port number of the NS is now correctly displayed.
- Added "quickstart" example that uses John Wiegley's
remote.py
module.
It makes using Pyro extremely easy: look at the client and server code!
- Added "multithread" example that shows the need of a multithreaded server (as supported
since this release).
- Added
__copy__
method to the proxy code, which creates a local copy of a proxy object (with a new
connection to the remote object).
- Fixed bind() and connect() calls in
protocol.py
to be compatible with Python 1.6.
- Fixed possible socket binding error in Pyro servers by setting socket option to reuse local address.
- Fixed problem with binary GUID:
int2binstr
could return a string with less bytes than expected
which creates an invalid binary GUID. The code now passes a required string size and the GUID is now always 4*4
bytes.
- Fixed bugs that prevented the use of AttrProxies with delegated objects. You can now use direct attribute
access with objects subclassed from ObjBase or delegated objects.
Pyro 1.5
- Fixed multithreading issues, most notably the protocol errors ("invalid header"). (An incoming
request is now fully read from the socket before a thread is dispatched to process the method
call).
- Protocol update. You must update all Pyro installations because the new PYRO protocol is incompatible with the
previous one.
- PYRO protocol can now compress the messages to save bandwidth, for instance over low-speed connections such as
modem. You can control this with the new configuration item
PYRO_COMPRESSION
. However, the current
solution is temporary and is likely to be replaced with a more general implementation. The zlib
module
is used for compression. If you don't have zlib
, Pyro still works, but without compression.
- Fixed a reference cycle in ObjBase when not using delegate.
- Small change to examples/quickstart: existing name is silently overwritten in Name Server.
- Small change in
Pyro_dyncall
method of ObjBase
that makes it a little more generic
when checking for 'local' attributes.
- Small change in error message for INVALID HEADER in protocol.py, now prints socket address.
- Xnsc tool is now a bit wider so more text fit in the window without wrapping.
- Removed
__call__
method from DynamicProxy
. I assume nobody ever used the only benefit
it provided (that proxy('method')
was slightly faster than proxy.method()
).
- Configuration files are handled a little different at startup. If you don't specify a specific config file with
the environment setting, Pyro checks for a
Pyro.conf
file in the current directory. If it exists, Pyro
uses it as a configuration file. If it doesn't exist, Pyro uses the default built-in config. Furthermore, Pyro now
raises a PyroError if somehow a config file can't be read.
- Daemon prints a more verbose error message if it can't start.
- Pyro server now raises a PyroError if it can't load the Python module that is needed for the code of objects
that were passed in a remote call.
- "quickstart" example has been extended. New version of
remote.py
and a
very convenient
pyrorun
script. (John Wiegley)
- Mobile agent example added; "agent" (it comes close but it is not yet a real mobile agent
- the code doesn't yet travel across the network)
- Small documentation updates and fixes.
Pyro 2.0
- NEW MAJOR VERSION. Because of all new features mentioned below.
- True mobile agent support! Pyro can now automatically push Python code across the network to
make mobile agents possible. See the "agent2" example.
- Persistent Naming Service. See relevant documentation! (the new name server chapter)
- Added
rns
script; this script restarts the NS automatically after a shutdown or crash.
- Documentation updates (examples + new name server chapter + feature chapter contains much more info).
- Changed old persistence code in
core.py
.
- Added
PersistentNameServer
class in naming.py
, which implements a NameServer that
uses the hierarchical file system on your disk to store its database in a persistent way.
- NameServer now always returns
PyroURI
instances from resolve
. In the past it could
also return URIs as strings.
- It's no longer possible to delete the root group from the NS.
- Removed Python 1.5.1 workarounds ('extra' dir with socketserver module, abspath workaround in config module).
Please upgrade to at least Python 1.5.2.
- Socket code no longer throws
socket.error
but Pyro.errors.SocketClosedError
exceptions.
PYROAdapter
has new rebindURI
method to support the new auto reconnect/rebind feature
when a network problem occurs.
PYROAdapter
now raises a ProtocolError
when it receives a request for an unknown
object ID.
ServerFullError
exception has been removed!!! You must change your code that used it. It has been
replaced by a more general ConnectionDeniedError
exception.
- Generalized new connections check: the daemon now has a new connections validator, which can be
replaced by a custom version. The default version implements the old behaviour; checking if the number of
connections is less than the maximum amount configured in PYRO_MAXCONNECTIONS. See relevant documentation about the
validator.
- Added "denyhosts" example to show custom connection validator feature.
- Added "autoreconnect" example to show auto reconnect feature.
- Name Server now has security plugins; one for validating broadcast requests, and one new connection validator
as described above. See relevant docs.
- Added "NS_sec_plugins" example to show the NS security plugin feature.
- Added "agent2" example with true mobile agent code.
- Added
PYRO_MOBILE_CODE
config item to enable mobile code.
- Added
PYRO_DNS_URI
config item to use symbolic DNS hostnames in URIs instead of fixed IP
addresses
- Added support for mobile code in
Pyro.core.ObjBase
.
- Performance tuning in
core.py
; PROTOCOL IS INCOMPATIBLE with previous version.
- Slight addition to
Pyro.core.Daemon
: extra publishhost
argument to use in case of
firewall situation. See Features chapter.
Pyro 2.1
- Pyro is now under the GNU LGPL. See "LICENSE".
- Fixed spelling errors in the documentation.
- Removed some config items to make things less complex. You have to remove them from your Pyro.conf files
too:
- Removed config item
PYRO_NS_NAME
; it is now hardcoded and available (if needed) as
Pyro.naming.NS_NAME
.
- Removed config item
PYRO_NS_GROUPSEP
; it's now hardcoded as '.'.
- Removed config item
PYRO_NS_ROOTCHAR
; it's now hardcoded as ':'.
- Added the Event Service (
Pyro.EventService.*
). See the chapter on Pyro Services.
There is an example too: "stockquotes".
- Fixed the "naming" example.
- Translated the TODO list from Dutch to English, so everybody can read it now.
- Enhanced
DynamicProxy
; it can now be used as a key in a dictionary. This was needed for the Event
Servive.
Pyro 2.2
- GUIDs are now constructed using the Python process ID (PID) too. This gives extra safety against double GUIDs
possibly generated by multiple python processes on the same machine.
- Renamed
SocketClosedException
to ConnectionClosedException
. The new name is more
independent of the actual implementation.
- Removed some references to the
socket
module and socket.error
. This makes the rest of
the code more independent of the actual protocol implementation. A future Pyro release may contain even more
changes to fully support multiple protocol implementations (not only sockets).
- Documented the
pickle
trojan vulnerability in the 'Features and Guidelines' chapter.
- Included setup script by Alexandre Fayolle.
Pyro 2.3
- Pyro now requires at least Python 2.0.1, but Python 2.1.1 or later is recommended. Anything older than Python
2.0.1 is no longer supported.
- Added
PYRO_NS_HOSTNAME
config item, for direct hostname lookup when the NS can't be found using
broadcast.
- Documentation and examples changed to reflect the above enhancement.
- Grand renaming: Naming Service is now called Name Server everywhere. Event Service stays.
- Logger now uses YYYY-MM-DD hh:mm:ss date/time format.
- Event Service improved, but it now requires threads to work. Major problems have been fixed regarding
re-subscribing and unsubscribing while processing events.
- Improved rich comparison and hashing of proxies. They can now be a key in a dictionary, and proxies that refer
to the same object GUID, compare the same. Sadly, this largely breaks the hashing and rich comparison possibility
of the remote Pyro objects. You're not comparing those objects, you're comparing the proxies... The hashing and
rich comparison didn't work for remote objects in Pyro 2.2 too (same reasons) so this is not too bad.
- Dramatically improved the speed when sending large messages: the sock_recv code now uses a
list of chunks and joins them at the end, instead of string concatenation. You will see the difference in the
hugetransfer example: the message size has been increased tenfold, but the time it takes is almost unchanged
:-)
Pyro 2.4
- Preliminary Jython support, workarounds/hacks to fill in for missing features such as
select
,
errno
and getpid
. Only PYRO clients in Jython currently, because servers need
select
!
- Fixed docs about removed config items in Pyro 2.1
- Fixed time format string in logger, now the loggings includes the time again on Windows
- Fixed indentation errors in quickstart example's
remote.py
and it should work again on Windows
(signals).
- Fixed the log file configuration options, they now work as documented. When changing
PYRO_LOGFILE
or PYRO_USER_LOGFILE
, all following log messages are written to the new location. If the filename
isn't an absolute path, it will be made relative to the current PYRO_STORAGE
location.
- Slightly clearified the docs on the
PYRO_STORAGE
config item.
- Updated the example chapter to use Pyro 2.4.
- One additional small change to the proxy code:
__nonzero__
has been defined in the proxy.
- Pyroc now also generates proxy code with the various comparison and hashing functions.
- Oneway invocations support added. See the chapter on features and guidelines.
- New event service example "countingcars" that shows a client that changes its topic subscriptions.
- New "callback" example that shows callback invocations to clients and the new Oneway call.
- Event service now sets correct (publish) timestamps on events, also with slow clients.
- Event service uses oneway invocations to publish the events and to decouple from slow or buggy clients. They no
longer stall the publication thread in the ES.
- Documentation updates on the new features.
Pyro 2.5
- Slight change in names in the example chapter to avoid ambiguity between 'test' object and 'test' module.
- Rewrote PYRO_STORAGE directory checking to something much simpler. Should work on all platforms now.
- Navbar also at bottom of documentation pages for easier navigation.
- New config option
PYRO_CHECKSUM
to enable a quick Adler32 checksum on the messages. (Why Adler32
and not CRC32? Adler is faster, and we need speed).
- Now using regular expression to parse Pyro URI strings.
- New URI
PYRONAME://nshostname:port/objectname
for very easy automatic object lookup.
nshostname and port are optional.
- New URI
PYROLOC://hostname:port/objectname
for very easy object binding without using a
Name Server. port is optional.
- The Pyro Daemon itself is now a Pyro object too. This was needed for the PYROLOC: resolving, but it might prove
valuable too in a later version when you might want to access it to get information on server objects, for
instance. The Daemon has a fixed builtin GUID,
Pyro.core.INTERNAL_DAEMON_GUID
. I'm not sure if this
feature stays, because it might also be a huge security/stability hole. (please advise?)
- Improved documentation here and there.
- The setup.py script no longer overwrites system tools blindly, it warns you of this issue and it asks you to
specify the path were the Pyro scripts have to be installed.
Pyro 2.6
- Fixed mobile code (agents). Internal exception caused socket to shutdown, causing connection lost error.
- Minor changes to the docs, documented the mobile code module restriction, a bit more details on auto
rebind.
- Fixes to some small and a few nasty bugs that had crept in. Some bugs detected by pychecker, yay
- Moved constants to new module
Pyro.constants
to avoid import conflicts.
- Renamed and moved the internal Pyro names:
Pyro.constants.NAMESERVER_NAME
and
Pyro.constants.EVENTSERVER_NAME
. (previously NS_NAME
and
EVENTSERVICE_NAME
)
- Fixed
StringTypes
that was a Python 2.2 dependency.
- Event Server clients will now correctly terminate (the request loop no longer hangs)
Pyro 2.7
- Pyro is close to a major new release (3.0). It appears that 2.x has no more big issues.
- Mobile code improved: can now transmit modules from packages! Agent2 example changed to reflect this.
- Added two more examples: chatbox with and without using the Event Server.
- Finally documented the Name Server Pyro object methods.
- Minor other changes and additions to the docs.
- Fixed some leaks when handling exception tracebacks.
- Added logic to transfer remote exception tracebacks to clients and to print them on the client. See
Pyro.util.getPyroTraceback
.
- The
NameServerLocator
no longer performs a broadcast lookup if the hostname is specified in the
getNS
call, or if the PYRO_NS_HOSTNAME
config item is specified.
- Added host and port options to Event Server start script.
- Event Server now has nice error handling and cleanup, like the Name Server.
- No longer does SO_REUSEADDR on sockets when running under Windows, because Windows has a quirk with this that
allows multiple processes to listen on the same socket.
Pyro 2.8
- Fixed import Pyro.protocol error by moving RIF_* flags to constants module.
- Completed chapter 6 - implementation. Not as much info as I would like, but it's enough to get a quick idea of
how Pyro's implemented.
- Compressed the example chapter to make it easier to understand.
- Changed preferred way of dealing with the daemon's request loop to
requestLoop
, instead of
handleRequests
(Don't worry, the latter still exists!). Updated most examples.
- Fixed ^C handling of chatbox examples.
- Fixed bug when both compression and checksumming were enabled.
- Setup script should work again under Win98, also, entering no path for the location for the script files takes
the distutils default path.
- Fixed old bug in pyroc generated proxy code (method names for remote attribute access were wrong)
- Added agent docs on module dependencies: imports of other unknown modules don't work in agents.
Pyro 3.0
- Major new version! Not compatible with older versions!
- Pyro is now under the MIT software license. This license is much easier and less restrictive
than the previous (GNU LGPL). Please read the file "LICENSE"!
- Major speedup, up to twice as fast as before! (Thanks to new threading code) This makes Pyro in
multithreaded mode as fast as singlethreaded mode :-)
- Removed last traces of sockets in
core.py
. It only works with the more abstract
connection objects.
- Added SSL support (based on a patch by Holger Brückner, thanks!). Requires M2Crypto module.
- Simplified objectID encoding, now uses hexlified guids everywhere. No more converting from/to binary
strings.
- Changed threading in protocol.py: Pyro used to hang when bad clients connected but didn't write their full
message on the socket. Now Pyro splits off a new thread directly, as soon as it detected a new connection
or request.
- Pyro no longer spawns a new thread for each request. Instead, it spawns a single thread for each
connection, and hands control to that thread. The thread processes requests sequentially, and dies when
the connection closes. This causes a major speedup when processing lots of small requests.
- Fixed some obscure potential socket/threading bugs and made protocol version mismatch handling slightly
better.
- Connection denied reasons added to constants.py
- Fixed cpu-bound server in multithreading example
- Implemented XML pickling support using Gnosis_Utils' xml pickle, PYRO_XML_PICKLE config item to select it.
Server automatically answers in correct pickle format.
- No longer dumps config twice when program uses both init client and init server.
- Fixed some cyclic references. Object-daemon reference is now a weak reference if available (Python 2.1+).
Daemon/tcpserver now appears to clean up nicely.
- Added some extra cleanup methods to nicely close socket connections.
- Authenticated connection validation. You can now require the Pyro client to give a valid authentication
ID (password) while connecting. Control this using the improved connection validator. Not used
by default, so old code still works without authentication. See the "NS_sec_plugins" example.
- Configurable timeouts on sending and receiving of messages. Due to changed connection procedure, this also
works for new connections. So Pyro can now also timeout when a new client just connects and blocks without sending
anything (the port is not occupied forever).
- Added a new chapter about security to the manual.
- The Daemon is no longer directly remotely accessible. Instead, there is now a DaemonServant object
with a limited interface that is the actual Pyro object and that calls the daemon.
- PyroURI objects have two new methods to directly get a proxy from an URI object:
getProxy
and
getAttrProxy
.
- Proxies can now be 'passivated' if they are not needed for a while (they release their network connection)
proxy._release()
- Transient server objects can be automatically cleaned up after a specified period of inactivity.
daemon.setTransientsCleanupAge(timeout)
Also added this to the Bank2 example, so have a look
there.
- Mobile agents can now import other modules that don't already exist on the server! (But only from within the
agent class methods, not from within the defining module scope) They will also be loaded from the client, if the
codeValidator allows this.
- Special base class for callback objects;
CallbackObjBase
. It will raise local exceptions also, not
only silently passing them back to the server.
- Can now create
PyroURI
instances from PYROLOC: and PYRONAME: uris. The instance will be the actual
URI, after performing the lookup. Not very useful actually, because we used to do the equivalent
proxy=Pyro.core.getProxyForURI('PYRONAME://.......')
Now you can also do
proxy=Pyro.core.PyroURI('PYRONAME://.......').getProxy()
- Added two minimalist examples in the manual, to show how easy Pyro is :-)
- Name Server, Logger and listdir are now thread-safe (oops, they weren't before).
- Event Server no longer requires threads, checks if it is already running, and has new '-i' command line option
to specify the required authentication passphrase.
- Name Server checks at startup if it is not already running in the network segment. Unless you use the new '-m'
command line option, it refuses to start if another NS is detected.
- Name Server has new '-i' command line option to specify the required authentication passphrase.
- setup.py script can now be run unattended (for automated installs) by editing setup.cfg
- Added stresstest example (stresses the Name Server and the Event Server). Good for stability check.
- Pyro objects can now access Thread Local Storage by calling
self.getLocalStorage()
. This is an
empty class to store your stuff into. It has one attribute, caller
, that is the TCPConnection of the
calling object.
- Renamed "Mobile Agent" to "Mobile Object" where appropriate. Mobile Agents are
a special kind of Agent, and an Agent is a very special piece of software, and most mobile code
that we're talking about isn't an agent.
- Added process ID and thread name info to logging messages.
- Fixed setup script, creation of RPM should now work (python setup.py bdist_rpm).
- Added "circle" example to show circular calling patterns.
- Added "quickstart-noNS" example, like the "quickstart" example but this one doesn't
use the NS.
- Improved "callback" example and documentation about Callbacks.
- Promoted
remote.py
and remote_nons.py
(from the "quickstart[-noNS]"
examples) into the Pyro library: there is a new package Pyro.ext
that contains them.
They still have to be documented in this manual though.
PyroURI
objects are now correctly hashable, so you can use them as keys in dictionaries. The
uniqueness is determined by the string representation of the oject.
- Documented the fact that
MyObject.attribute.subattribute
won't work in some cases, and extended
the attributes example a bit.
- Fixed problem with deleting DynamicProxy in case of invalid URI.
- More troubleshooting tips added.
- Documented deadlock with object conversation problem (in Features chapter).
- When mobile code is not enabled, the remote invocation doesn't use the import wrapper class (5% speed
improvement)
- Fixed shell scripts to allow quoted arguments such as: ns -i "the id string"
- URI parsing is stricter (could get in loop with certain invalid URI strings)
- Finally fixed the Event Server crash problem with the "stresstest" example; the ES now uses
worker threads and Queues per subscriber.
- Two new config items for the ES:
PYRO_ES_QUEUESIZE
and PYRO_ES_BLOCKQUEUE
.
- Small fix in installation docs about where to put the module files.
- Documented the fact that proxies can be pickled when not connected, and added _release method to
NameServerProxy.
- Documented the serious 'local object' issue with nested attribute access, in the Features chapter.
- Support added for PyXML's xml-pickler. Config item
PYRO_XML_PICKLE
changed: now chooses what
implementation is wanted.
- Docs now contain links where referred to other parts of the docs. Various other documentation fixes.
- ns script now has '-v' option to enable verbose output. Normal output is slightly more compact.
- Proxy objects are now automatically pickleable, no need to call
_release()
first.
- New
SynchronizedObjBase
base class which provides threadsafe method calls (every method call is
synchronized on the object).
- Fixes for
CallbackObjBase
error reporting, added another callback example for this.
CallbackObjBase
is better documented.
- Big improvements in the mobile code department, thanks to Ulrich Eck:
- 2-way mobile code now possible! Client can transparantly download missing code from the server, no longer
only upload it to the server!
- CodeValidators now work for both up- and downloaded code.
- Remote code downloading from server is also recursive. watch out! there are no sanity checks
yet.
- downloaded modules no longer overwrite existing modules
- Updated the "agent2" shopping example to use 2-way mobile code.
- Big improvements in the connection validation logic, thanks to Luis Caamano and Scott Leerssen: The connection
validation logic has been condensed in a single class (
DefaultConnValidator
). It is now much more
flexible. By providing a specialized ConnValidator object you can now completely control the logic that Pyro uses
on both client-side and server-side to authenticate new client connections. The change is backwards-compatible and
the default implementation still uses the md5 hashing of identification phrases for authentication.
- Added a WXPython GUI name server control utility: wxnsc.py, and a batch file wxnsc. Thanks to Jan Finell for
this nice GUI tool with a tree view of the namespace.
- Fixed some path issues (mac) in the setup.py script.
- Fixed some Python 2.1 incompatibilities that had crept in (foo in dict instead of foo in dict.keys())
- NS broadcast server now binds on '' on Windows. '<broadcast>' doesn't work on Windows (???)
- Disconnecting objects from a Daemon no longer crashes when no NS is used.
- Scripts changed to pass correct sys.argv arguments to actual Python modules. Ugly '-c' argument removal code is
gone.
- Daemon now tests if your hostname is valid and doesn't resolve to the loopback address 127.0.0.1 (which is
often invalid). A warning message is logged in that case. NS and ES also print the message on the screen at
startup. The test is done in the
validateHostnameAndIP
method of the Daemon.
- Name Server now also accepts non-absolute names and does the expansion itself, if needed. This enables
simplified access to the NS trough other means than the default static proxy obtained from the locator. (suggested
by Luis P Caamano).
- Replaced to-be-deprecated
apply
with func(*args)
syntax. Small speed increase
too.
- NS no longer logs error when detecting duplicate NS.
- Added Windows NT Services to Pyro (run NS / ES as NT service). Including batch files
nssvc.bat
and
essvc.bat
to install/remove them.
- Added Unix daemons to Pyro (run NS / ES as initd daemon). Including batch files
nsd
and
esd
to run them from init scripts.
- Relocated Event Server chapter in the manual after the Name Server.
- Fixed race condition in dir check in configuration.py
- Fixed race condition in _grimReaper in core.py
- Fixed mobile code load/compile issue on windows. Pyro now supplies .pyo, .pyc, .py in that order. On Windows,
Python can't compile downloaded .py files if they have CR LF in them... :-(
- A few Jython compatibility improvements (GUID, config init).
- Fixed maxclient example and ConnectionDeniedError for maxclients.
- Thread Local Storage has been improved (docs + added initTLS in Daemon)
- The NS tries "<broadcast>" first, this fails on some systems (windows) but it
now automatically tries ""
next (which should work).
- Pyro now enforces you to initialize it correctly by calling
Pyro.core.initClient()
or
initServer()
. Failure to do so will result in a PyroError
very soon.
- Name Server now has Paired Mode: run two NS instances that synchronize with eachother. Use for
fail-over.
- nsc tools have new options to deal with new NS features (meta info, paired NS).
- Name Server lookups automatically try to use the second NS if the first is unreachable.
- NS proxy automatically tries to find the NS again (or its twin) when the connection has been lost.
- Three new config items for the paired-NS mode: PYRO_NS2_* (see configuration chapter).
- NS ports slightly changed: NS now uses 9090 TCP and 9090 UDP by default (was: 9090 TCP and 9091 UDP). The
second -paired- NS uses 9091 TCP and 9091 UDP.
- You can now run clients on read-only systems:
PYRO_STORAGE
is no longer created and checked for
access when initializing clients. When you're initializing a server, it is still checked, unless
you explicitly disable the check by setting the new optional argument storageCheck
to zero:
Pyro.core.initServer(storageCheck=0)
.
- More emphasis in the docs on the drawbacks of single-threading mode; you cannot use callbacks (Pyro will
freeze)
- Rewrote the Event Server chapter in the manual.
- objects connected using connectPersistent() are no longer removed from the NS when the Daemon is removed.
- Fixed bug in pickling of DynamicProxy (it didn't work in the regular pickle module, and Jython). Also, you can
now do this:
proxy.method(proxy)
i.e. pass the active proxy to a methodcall on itself. That didn't
work before.
- Passing DynamicProxies no longer cause the socket connection to be disconnected. So on a new method call on the
proxy that was passed, it is no longer needed to do a reconnect.
- Detailed tracebacks (with dump of the local variable's values) can now be enabled by setting
PYRO_DETAILED_TRACEBACK
to 1. Contributed by Richard Emslie.
- Pyro now deals correctly with obsoleted string exceptions (raise "blahblah"). (jf Gosset)
- Pyro exceptions now also automatically print their remote traceback info because the
__str__
method has been customized in the PyroExceptionCapsule
. No longer necessary to use exception handlers
and call getPyroTraceback
. Contributed by jf Gosset. This is turned off by default, turn it on by
setting PYRO_PRINT_REMOTE_TRACEBACK
to 1.
- New-style logging using the
logging
module can be enabled with the use of two new config items
PYRO_STDLOGGING
and PYRO_STDLOGGING_CFGFILE
. The logging API is unchanged so old code
still runs. With an appropriate logging configuration file, it should be possible to log to any destination
(handler) that logging
supports. This further enables clients (with logging!) on a read-only system:
just log to syslog or a socket, no need to write logfiles to the local disk.
- "simple" example is now completely standalone instead of using testclient/server.
- Objects in the Name Server can now have user-defined meta information attached to them.
nsc
(and the others) can show the meta information.
- documented that the auth challenge string has to be exactly 16 bytes long, and Pyro now checks this.
- New config item PYRO_TCP_LISTEN_BACKLOG that specifies the socket listen backlog size (used to be a measly 5,
is now default 200).
- Reordered a bunch of try..finally regarding mutex locking/unlocking. Should better prevent possible
deadlocks.
- Added missing
__copy__
method to DynamicProxyWithAttrs
. (This bug caused the Bank2
example to crash, for instance).
- Added stdin/stdout redirection to NUL for NT service in BasicNTService.py, thanks to David Rushby.
- Provided new SSL demo certificates, valid until january 2005. SSL example works again.
- Implemented PYROLOCSSL:// protocol which works just like the existing PYROLOC:// protocol, but uses SSL
instead. (compare with PYROSSL:// versus PYRO://). This means you can now use Pyro in SSL mode without using the
Name Server to look up objects. (PYROLOC didn't work over SSL)
- For Pyro clients, it is no longer required to explicitly call
Pyro.core.initClient()
. Pyro will do
this automatically if it is not yet initialised.
- For Pyro servers, it is no longer required to explicitly call
Pyro.core.initServer()
if you are
creating a Pyro Daemon as a first action. If you have not yet initialised Pyro explicitly, Pyro will do this for
you when you create a Pyro Daemon. If you do other Pyro operations before that, this will obviously not work.
- You can now configure command line arguments for the Windows NT services (essvc, nssvc) in the Registry. The
keys are:
HKLM\System\CurrentControlSet\Services\PyroES
and ...\PyroNS
. The value under
that key is: PyroServiceArguments
(REG_SZ, it will be asked and created for you when doing a fresh
nssvc remove
... nssvc install
... essvc remove
... essvc
install
.
- The win NT services (nssvc, essvc) now write their logging to a logfile in the root of your system
drive (usually C:\), named "Pyro_NS_svc.log" and "Pyro_ES_svc.log" .
- Documentation improvements about the Event Server.
- Documentation improvements about Connection Validators.
- Documentation added about nssvc and essvc NT-Service scripts for the NS and ES.
- Documentation HTML cleanups.
- Added a "user_passwd_auth" example that shows how to do connection validation (authentication)
based on username + password.
- Added a "filetransfer" example that shows how to do file transfers using Pyro.
- Added a "rserve" example that shows tuple-space like distributed communication. It can't
get simpler than this! Contributed by John Wiegley.
- New wxnsc.py that deals with meta info.
- Fixed daemonizer.py to really detach the daemon.
- Fixed socket buffer/memory problem in protocol.py socket recv code, that seems to occur in certain
situations.
- ResolvePYROLOC raises NamingError instead of KeyError if object name doesn't exist.
- Deamon now always prints and logs a warning if bound on localhost/127.0.0.1.
- Added a config item PYRO_SOCK_KEEPALIVE (default enabled) to control the SO_KEEPALIVE socket flag (to detect
broken connections).
- Changed config item PYRO_BINARY_PICKLE into PYRO_PICKLE_FORMAT, which defaults to the best pickle format
available. (on Python 2.3+ this is pickle.HIGHEST_PROTOCOL (2), otherwise it's 1). This means that on Python 2.3+
the new pickle format is automatically used that is much smaller and faster for new-style classes.
Pyro.naming.NameServerStarter
now raises exceptions when it cannot start the name server.
Pyro.naming.NameServerStarter
and Pyro.EventService.Server.EventServiceStarter
now
have a threadsafe way to wait until the server has been started: call the waitUntilStarted(timeout)
method. This is used in the updated "AllInOne" example.
- Improved GUID generation a bit (threadsafe, tweaks).
- Fixed some issues with Pyro.conf config file.
- This is the last Pyro version that will work on Python 2.1, future versions require Python 2.2 or even
2.3.
Pyro 3.5
- Starting from this version, Pyro is only tested and supported on Python 2.3+. Python 2.2 may
work, but no guarantees.
- PyroC -the static proxy compiler- has gone. Only dynamic proxies now.
- Removed the 127.0.0.1-error print statement from the Daemon (the warning in the log is still done
ofcourse).
- When verbose flag is given, NS now also does the deamon loopback test (and prints warning) just like ES
does.
- Remote method intercept code improved; it now uses a RemoteMethod stub object instead of the _name
methodname-stack. You can now use bound method references to remote methods on the proxy (
meth =
proxy.someMethod
), this did not work before.
- fixed some small documentation errors
- a few tweaks to the comparison methods (__eq__ etc) of the proxy object. Only eq and ne are defined now and
work fine if a proxy is compared to a non-proxy object. You can now safely do
prox in aList
even when
the list contains other objects.
- added the three missing name server methods fullName, setMeta and getMeta to the NS chapter in the docs
- Updated/clarified some things in the manual, such as the proxy-per-thread rule, and shutting down the server
and daemon.
- daemon shutdown() is now honored by requestLoop()
- daemon shutdown() now takes an optional boolean disconnect parameter, if set to True (default=False) the daemon
will unregister its objects directly (and shut down)
- rebindURI raises a more specific TimeoutError instead of plain ConnectionClosedError
- small fix in Pyroc so that it creates proxies for new-style classes too, but no guarantees that they work as
intended (better to use dynamic proxy). Pyroc is a dinosaur and will likely be removed from Pyro.
- protocol code now uses socket.sendall() instead of a home grown loop.
- added support for MSG_WAITALL flag on socket recv for more efficient network transfers (especially large ones),
on platforms that support this flag (such as Linux. Windows doesn't support it). I measured a 20% speed increase
with the 'hugetransfer' example on Linux.
- added support for my recvall patch (it is used if detected). See Python patch #1103213.
- Fixed the NameServer when using paired mode (-1/-2) and identification (-i).
- NameServerLocator now sends the two broadcast messages to locate the NS (possibly running in paired mode) in
parallel, so the initial delay for it to figure out that one of the two is down, is now gone.
- Added the offending name to almost all
NamingError
exception args.
- Fixed the persistent name server when it stores names on the filesystem with special characters (they are now
escaped).
- Fixed persistent NS metadata-handling.
- Finally implemented persistent NS paired mode.
- The nsc tools now all have a setmeta command or button.
- Fixed various pychecker warnings and other assorted code cleanups.
- Fixed BasicNTService stream redir problems caused by recent pywin32 changes.
- New certificates in the ssl example that are valid until januari 2006.
- Tested with new M2Crypto (0.13+), had to implement a work-around for MSG_WAITALL-bug in M2Crypto API.
- Default connection validator
createAuthToken
now uses hmac-md5 instead of 'plain'
md5. Updated the "user_passwd_auth" example accordingly.
- Fixed mobile code exception issue.
- Fixed ConnectionDeniedError exception issue.
- Changed md5.md5() calls to md5.new() (likewise hmac.new), the latter is the documented form
- Fixed mobile code pass-trough (as demonstrated by the new "agent3" example)
- Fixed mobile code issue that didn't allow multiple agent modules in the same package
- Added some more mobile code caveats in the docs.
- Fixed nsc shutdown command when not using broadcast.
- Fixed Oneway calls: they are now executed in their own thread, so that the caller is no longer
blocked when using the same proxy again for the next regular call. Added a new "oneway"
example that shows how that fix works.
- Added a very interesting "distributed-computing" example that 'cracks' md5, or sorts a huge
array, but can easily process other tasks (if they can be partitioned)
Pyro 3.6
- a PyroException is now raised when Pyro detects you're sharing a connected proxy among different threads.
- sre module is deprecated, import re instead (core)
- socket reuseaddr is no longer set on cygwin, to fix connection issues on cygwin/windows (protocol)
- added a new distributed computing example (distributed-computing2) that uses pull model (workers pull new chunks of work)
- added some mobile code test scenarios: testmobile examples
- documented float NaN/Inf problems in troubleshooting chapter
- fixed timeout bug (send/recv), added timeout example
- a lot more documentation on multithreading issues with proxy objects
- added some explicit remarks about using the same major Python version to avoid pickle dataformat mismatches
- removed support for PyXML pickling format because PyXML's marshaler is buggy and no longer maintained
- removed the 'any' setting for PYRO_XML_PICKLE, you must explicitly name the implementation you want
- Added PYRO_GNOSIS_PARANOIA config item to be able to manipulate Gnosis pickler's paranoia (security) setting
- Added support for new Gnosis utils version 1.3.x
- added warning in guidlines in manual about attribute access to large data structures
- reformatted manual HTML, manual now has a nice CSS style and optimized print output as well
- improved Nameserver exceptions a bit
- added PYRO_BROKEN_MSGWAITALL config item for use on systems that have broken socket MSG_WAITALL support. When set
to 1, Pyro will use a different piece of code to receive data (slower, but working on these systems as well).
- improved the PYRO_BC_RETRIES and PYRO_BC_TIMEOUT config items: you can now set them to a negative value to mean 'infinitely'.
- added PYRO_HOST and PYRO_PUBLISHHOST config items
- automatic remote traceback printing has been removed, and the config item PYRO_PRINT_REMOTE_TRACEBACK as well.
Changes in Python's exception class implementation no longer allows to change the way
exceptions print themselves.
- renamed (internal) setDaemon method to avoid name clash with method on Python's Thread object
- replaced select() calls with a safer utility method (suggested by Oliver Gathmann)
- fixed very old frame GC-leak in Pyro_dyncall (SF bug 1407267)
- when running on localhost, Pyro will no longer start a NS broadcast server (this avoids not-working-NS addresses on other machines in the network)
- the NameServerLocator will now try to contact a Name Server on the current machine and localhost if the broadcast lookup fails. This allows standalone Pyro to work on Windows without having to configure PYRO_NS_HOSTNAME etc.
- threading fixes in event service and core pyro code
- locks around code doing mobile code imports, to avoid import race conditions
- mobile code is now able to compile source code with strange line endings such as CR LF (now opens source files in 'rU' mode)
- fixes in copying and pickling of proxies, also includes identification data now (if any)
- removed rserve example
- changed forking client in multithreading example to use threads instead, so it now works on Windows as well
- fixed ns thread issue in distributed-computing example
Pyro 3.7
- Fixed typo for bdist_rpm target in setup.cfg
- Batch scripts have been renamed, all now start with a 'pyro-' prefix. This avoids name clashes. This was already done in the Debian package for instance.
- NS broadcast retry is now 1 (was 2) and timeout is now 0.75 (was 2)
- Pyro.core.SynchronizedObjBase now correctly handles string exceptions (deprecated anyway)
- the NS nt service won't respond to shutdown requests anymore
- wxnsc updated to recent WxPython API, deprecation warning is gone
Pyro 3.8.1
- Pyro 3.8 is a bug-fix release that is almost completely backwards compatible with Pyro 3.7, apart from the exception change explained next.
- Pyro now uses an internal mutex to control concurrent access to proxy objects. You can now freely use proxy objects in different threads. The thread ownership check has been removed, and the _transferThread() method is now a stub.
- removed the exception args fiddling because it caused problems and depended on a deprecated python feature. If your code depends on the format of the exception.args field of an exception returned from a remote method call, you may need to change your code. This is the only thing that may not be backward compatible with code written for Pyro 3.7
- improved Jython and IronPython compatibility. See wiki pages for detailed info on this.
- fixed bug that self.daemon wasn't always set in NameServerStarter, causing problems with the shutdown and getServerSockets methods
- fixed pickling/copying of proxies (they were forgetting attributes such as oneway methods)
- version banner printing is now default off
- improved errorhandling of some protocol errors in protocol.py
- added request data format sanity check in protocol.py
- fixed /bin/env to /usr/bin/env in a couple of files (following patches from Ubuntu package)
- removed spaces in hashbang line in a lot of shellscripts (following patches from Ubuntu package)
- handle EINTR status (interrupted system call) during socket reads (no more ConnectionClosedError)
- fixed crash in initServer: storage dir checking issue with non-unique temporary files
- fixed crash in errormessage in naming.py
- changed relative imports to absolute imports
- a few more changes to certain del methods to avoid crashes
- nameserver locator no longer searches other hosts if an explicit hostname parameter is given
- pyro-xnsc didn't correctly use the hostname from the name server location textfield
- pyro-ns has new '-r' option to not look for existing name servers when starting a new one
- prefers hashlib over md5 module because of deprecation in newer python versions
- improved performance of supports_multithreading() and supports_compression() tests in util2.py (don't let them test the importing over and over again)
- removed util.py's dependency on protocol.py to avoid possible import problem
- fixed attrproxy getattr loop when deleting the object
- new config item PYROSSL_POSTCONNCHECK that you can set to 0 (default=1) to circumvent connection/certificate validations when using SSL
- user_passwd_auth example: passwords no longer stored as plaintext
- fixed server side connection exception when error occurs during oneway call
- The os can select a random port for your Pyro daemons if you set port=0 (and norange=1) when creating daemons. NS and ES also support this.
- You can now override the broadcast address for the name server and the name server locator. Added config items for this as well.
- fixed orig_import call in protocol.py for extra params that Python 2.6+ use
- replaced custom locking objects by imp.acquire_lock() to obtain global import lock in mobile code import logic
- autoreconnect example no longer stops after ten seconds
- benchmark example got its iterations heavily increased because of faster machines
- distributed-computing2 example generates easier numbers to avoid excessive computation times in factorization
- configuration.py, core.py, nsc.py explicitly import Pyro.errors to avoid import errors during runtime hopefully
- fixed monospace font in manual's print css; slightly tweaked the colors; headers are all underlined now (makes for easier reading when printed)
- ext/remote.py and remote_nons.py don't eat all break signals anymore (only ctrl-c), quickstart examples use timeout on loop to be able to break them
- cleanups in SSL code in protocol.py (receive loop, handleRequests, M2Crypto.threading.init() called if multithreading)
- added 2 convenience methods to the daemon: getLocalObject(guid) and getLocalObjectForProxy(proxy)
- AllInOne examples now use automatic port allocation to avoid port rebinding issues on certain os'es such as MacOS
- 3.8.1: fixed mobile code deadlock
- 3.8.1: better handling of socket.timeout errors