Sorry about this, but the last patch had a mistake in the writev
Looks okay - I'll take a look at incorporating it to my local changes and see how it helps. The one thing I'd change is the sizeof(char) to sizeof(newline). Since it's a constant that allows '\r\n' to be sized accordingly. -- justin