mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 04:14:00 +00:00
Re-add TCP_NODELAY in host mode.
This commit is contained in:
parent
c2d9e7a538
commit
4b370cf55e
@ -111,6 +111,13 @@ static bool netplay_net_pre_frame(netplay_t *netplay)
|
||||
socket_close(netplay->fd);
|
||||
netplay->fd = new_fd;
|
||||
|
||||
#if defined(IPPROTO_TCP) && defined(TCP_NODELAY)
|
||||
{
|
||||
int flag = 1;
|
||||
setsockopt(netplay->fd, IPPROTO_TCP, TCP_NODELAY, (void*)&flag, sizeof(int));
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Connection header */
|
||||
if (netplay_get_info(netplay))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user