mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 00:28:26 -05:00
commit
565e139a56
@ -237,7 +237,7 @@ int anetResolveIP(char *err, char *host, char *ipbuf, size_t ipbuf_len) {
|
|||||||
|
|
||||||
static int anetSetReuseAddr(char *err, int fd) {
|
static int anetSetReuseAddr(char *err, int fd) {
|
||||||
int yes = 1;
|
int yes = 1;
|
||||||
/* Make sure connection-intensive things like the redis benckmark
|
/* Make sure connection-intensive things like the redis benchmark
|
||||||
* will be able to close/open sockets a zillion of times */
|
* will be able to close/open sockets a zillion of times */
|
||||||
if (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &yes, sizeof(yes)) == -1) {
|
if (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &yes, sizeof(yes)) == -1) {
|
||||||
anetSetError(err, "setsockopt SO_REUSEADDR: %s", strerror(errno));
|
anetSetError(err, "setsockopt SO_REUSEADDR: %s", strerror(errno));
|
||||||
|
Loading…
Reference in New Issue
Block a user