@jimis: Yes, it has helped a lot of times. The first TLS implementation contained the code for retrying because it was not clear if we were using blocking or non-blocking connections. That code was removed and now it is being added again in a different format. According to the manual page, the error code that we receive indicates that we need to retry the operation, and that is what happening. Feel free to change it but if you change it please take ownership of the code, we cannot be adding and removing code all the time.