cyassl is retried with the same write on a SSL_ERROR_WANT_WRITE, the wri...

...te is failed if it has not completed and it has been more than a second.

Signed-off-by: Mike Stitt <mikes@spindance.com>

See https://spindance.atlassian.net/browse/ALII-4195

@raensink please review.
In the old code, if CyaSSL returned SSL_ERROR_WANT_WRITE, this function would just return error.

But Todd from wolfSSL is saying the CyaSSL call is retried with a too short size.   I don't see how that is happening just from looking at this code.

Are these changes just adding more debug code?