minor uclient fix

This commit is contained in:
Oleg Moskalenko 2016-12-08 00:19:53 -08:00
parent 069f813cd5
commit ef1fd15b22
2 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@
Version 4.5.0.6 'dan Eider': Version 4.5.0.6 'dan Eider':
- Typos in the text fixed. - Typos in the text fixed.
- TLS1.2 support fixed. - TLS1.2 support fixed.
- uclient minor performance tweak.
08/27/2016 Oleg Moskalenko <mom040267@gmail.com> 08/27/2016 Oleg Moskalenko <mom040267@gmail.com>
Version 4.5.0.5 'dan Eider': Version 4.5.0.5 'dan Eider':

View File

@ -285,7 +285,7 @@ int send_buffer(app_ur_conn_info *clnet_info, stun_buffer* message, int data_con
while (left > 0) { while (left > 0) {
do { do {
rc = send(fd, buffer, left, 0); rc = send(fd, buffer, left, 0);
} while (rc < 0 && ((errno == EINTR) || (errno == ENOBUFS))); } while (rc <= 0 && ((errno == EINTR) || (errno == ENOBUFS) || (errno == EAGAIN)));
if (rc > 0) { if (rc > 0) {
left -= (size_t) rc; left -= (size_t) rc;
buffer += rc; buffer += rc;