Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F133346838
D26549.id77523.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
702 B
Referenced Files
None
Subscribers
None
D26549.id77523.diff
View Options
Index: tests/sys/netinet/so_reuseport_lb_test.c
===================================================================
--- tests/sys/netinet/so_reuseport_lb_test.c
+++ tests/sys/netinet/so_reuseport_lb_test.c
@@ -54,6 +54,7 @@
size_t i;
int *acceptcnt;
int csd, error, excnt, sd;
+ const struct linger lopt = { 1, 0 };
/*
* We expect each listening socket to accept roughly nconns/nsds
@@ -73,6 +74,10 @@
ATF_REQUIRE_MSG(error == 0, "connect() failed: %s",
strerror(errno));
+ error = setsockopt(sd, SOL_SOCKET, SO_LINGER, &lopt, sizeof(lopt));
+ ATF_REQUIRE_MSG(error == 0, "Setting linger failed: %s",
+ strerror(errno));
+
/*
* Poll the listening sockets.
*/
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Oct 26, 2:26 AM (57 m, 27 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
24206833
Default Alt Text
D26549.id77523.diff (702 B)
Attached To
Mode
D26549: Enabling SO_LINGER to the so_reuseport_lb_test regression tests
Attached
Detach File
Event Timeline
Log In to Comment