Skip to content

Commit

Permalink
Update src/socket.c
Browse files Browse the repository at this point in the history
Co-authored-by: Eileen M. Uchitelle <eileencodes@users.noreply.github.com>
  • Loading branch information
shanth96 and eileencodes authored Sep 13, 2023
1 parent c1c1837 commit 16b6aea
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,10 @@ static int raw_connect_internal(struct trilogy_sock *sock, const struct addrinfo

#ifdef TCP_NODELAY
if (sock->base.opts.tcp_nodelay_enabled) {
int flags = 1;
if (setsockopt(sock->fd, IPPROTO_TCP, TCP_NODELAY, (void *)&flags, sizeof(flags)) < 0) {
goto fail;
}
int flags = 1;
if (setsockopt(sock->fd, IPPROTO_TCP, TCP_NODELAY, (void *)&flags, sizeof(flags)) < 0) {
goto fail;
}
}
#endif
if (sock->base.opts.keepalive_enabled) {
Expand Down

0 comments on commit 16b6aea

Please sign in to comment.