On iOS, do not chunk outgoing TCP stream
This commit is contained in:
parent
a3514390e5
commit
b0697b9c9d
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue