Fix some typos in socket-util.h

This commit is contained in:
Michiel
2024-10-14 15:50:36 +02:00
committed by Mike Yuan
parent c9b477415a
commit 2053182bd1

View File

@@ -29,7 +29,7 @@ union sockaddr_union {
/* The libc provided version that allocates "enough room" for every protocol */
struct sockaddr_storage storage;
/* Protoctol-specific implementations */
/* Protocol-specific implementations */
struct sockaddr_in in;
struct sockaddr_in6 in6;
struct sockaddr_un un;
@@ -390,7 +390,7 @@ int socket_address_parse_unix(SocketAddress *ret_address, const char *s);
int socket_address_parse_vsock(SocketAddress *ret_address, const char *s);
/* libc's SOMAXCONN is defined to 128 or 4096 (at least on glibc). But actually, the value can be much
* larger. In our codebase we want to set it to the max usually, since noawadays socket memory is properly
* larger. In our codebase we want to set it to the max usually, since nowadays socket memory is properly
* tracked by memcg, and hence we don't need to enforce extra limits here. Moreover, the kernel caps it to
* /proc/sys/net/core/somaxconn anyway, thus by setting this to unbounded we just make that sysctl file
* authoritative. */