Changelog¶
Changelog¶
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
Unreleased¶
1.0.0 - 2026-04-06¶
Added¶
connection_timeoutconstructor parameter onThreadPoolXMLRPCServer— sets a per-connection socket read timeout so stalled or slow clients cannot hold a worker thread indefinitely. Defaults toNone(no timeout, keeping existing behaviour). Stored inXMLRPCServerConfig.connection_timeout.pytest>=8.0andcoverage[toml]>=7.4are now declared in thetestsanddevoptional-dependency extras, sopip install -e ".[dev]"gives a full, reproducible local test environment without extra manual steps.- First stable release (
1.0.0): all planned features from the original roadmap (M0–M4) are complete —ThreadPoolXMLRPCServer,ServerOverloadPolicy,ServerStats,LimitedXMLRPCRequestHandler,XMLRPCClient, SO_REUSEPORT helpers, ASGI adapter, and connection timeout.
Changed¶
- Development status classifier bumped from
3 - Alphato4 - Beta.
0.1.0 - 2026-04-06¶
Added¶
XMLRPCASGIApp— ASGI 3-compliant XML-RPC adapter (src/xmlrpc_extended/asgi.py):- Inherits
SimpleXMLRPCDispatcherfor fullregister_function/register_instance/register_introspection_functionscompatibility. async defhandlers are awaited directly in the event loop (no thread overhead).- Synchronous handlers run in a
ThreadPoolExecutorviaasyncio.to_thread. - ASGI lifespan protocol: startup creates the thread pool, shutdown drains it gracefully.
- Configurable
max_workers,max_request_size,rpc_path,allow_none,encoding,use_builtin_types. - HTTP semantics:
404for wrong path,405for non-POST,413for oversized body,-32700fault for malformed XML. - Zero runtime dependencies — pure stdlib + asyncio.
ThreadPoolXMLRPCServerfor drop-inSimpleXMLRPCServer-style usage with bounded thread-pool concurrency.ServerOverloadPolicyenum withBLOCK,CLOSE,FAULT, andHTTP_503modes.XMLRPCServerConfigdataclass for server configuration.LimitedXMLRPCRequestHandlerwith configurablemax_request_sizeand strictContent-Lengthvalidation:411 Length RequiredwhenContent-Lengthheader is absent.400 Bad Requestfor invalid or negativeContent-Lengthvalues.413 Payload Too Largewhen body exceedsmax_request_size.501 Not ImplementedforTransfer-Encoding: chunkedrequests.XMLRPCClientcontext manager with configurable timeout (xmlrpc_extended.client).SO_REUSEPORTmulti-process scale-out helpers for Linux (xmlrpc_extended.multiprocess).logRequests=Falsesuppresses both request and error-path log output.tests/test_asgi.py— 45 tests following AAA pattern covering: smoke, call semantics, HTTP semantics, lifespan, dispatch edge-cases, introspection, error handling, and concurrency.tests/test_server.py—CoverageGapTestsclass with 9 new tests closing all coverage gaps inserver.py; fullConstructorValidationTestsandExecutorShutdownTests.tests/test_extras.py— tests forclient.pyandmultiprocess.pycovering all branches.benchmarks/benchmark_all.py— unified benchmark comparing all four implementations (Simple, Threaded, ThreadPool, ASGI) side by side.benchmarks/benchmark_asgi.py— in-process ASGI benchmark usinghttpx.ASGITransport.benchmarks/benchmark_server.py—SimpleXMLRPCServervsThreadPoolXMLRPCServerbenchmark.docs/user-guide/asgi.md— full ASGI integration guide with deployment recipes, migration table, and testing patterns.docs/api-reference/asgi.md— API reference forXMLRPCASGIApp.docs/architecture.md— ASGI request lifecycle sequence diagram, handler dispatch flowchart, lifespan state diagram, and architecture comparison diagram.docs/benchmarks.md— unified four-implementation benchmark results.[tool.coverage.*]inpyproject.toml— branch coverage, fail-under=100, HTML report config.- AAA (Arrange-Act-Assert) comment pattern applied to all test methods.
- MIT license, packaging metadata, and CI workflow.
Changed¶
- Overload semantics: capacity model table, policy behavior matrix, and recommended defaults documented in README.