SF patch #678257 by Geoff Talvola. In sendall(), do an internal select before each send() call, instead of only for the first one.