On iOS, do not chunk outgoing TCP stream

This commit is contained in:
Doubango Telecom 2017-11-23 09:51:32 +01:00
parent a3514390e5
commit b0697b9c9d
1 changed files with 1 additions and 1 deletions

View File

@ -453,7 +453,7 @@ tsk_size_t tnet_transport_send(const tnet_transport_handle_t *handle, tnet_fd_t
int sent = 0, to_send;
const uint8_t* buff_ptr = (const uint8_t*)buf;
// on iOS when TLS is enabled sending more than 1024 bytes could fails
static const int max_size_to_send = 1024;
static const int max_size_to_send = INT_MAX;
to_send = (int)TSK_MIN(max_size_to_send, size);