
The reads now read as much of the data as is available to reduce the number of distinct malloc calls that need to be made. The SSL_read also now allocates the buffer before reading into it so that the amount of copying is reduced. Also removed some of the not quite helpful debug messages.