Oops, big mistake. Thanks. Fixed now, and I updated the test to make sure that the number of bytes written is returned to the client.