>>>>> "TD" == Toby Dickenson <tdickenson@geminidataloggers.com> writes: TD> There is an O(n) option with easy logic... fragment big strings TD> inside message_output. Sounds like a possibility. It would still be nice to have something in handle_write() to avoid extra slicing on partial send()s. But your patch is nice and simple. Jeremy