mirror of
https://github.com/php/php-src.git
synced 2024-11-30 13:25:43 +08:00
ext/sockets: socket_get_option/socket_set_option SO_LINGER_SEC. (#14858)
9672cd9469
follow-up.
This commit is contained in:
parent
23391f1fe7
commit
1db75d42bb
@ -1693,6 +1693,9 @@ PHP_FUNCTION(socket_get_option)
|
||||
|
||||
if (level == SOL_SOCKET) {
|
||||
switch (optname) {
|
||||
#ifdef SO_LINGER_SEC
|
||||
case SO_LINGER_SEC:
|
||||
#endif
|
||||
case SO_LINGER:
|
||||
optlen = sizeof(linger_val);
|
||||
|
||||
@ -1901,6 +1904,9 @@ PHP_FUNCTION(socket_set_option)
|
||||
}
|
||||
|
||||
switch (optname) {
|
||||
#ifdef SO_LINGER_SEC
|
||||
case SO_LINGER_SEC:
|
||||
#endif
|
||||
case SO_LINGER: {
|
||||
const char l_onoff_key[] = "l_onoff";
|
||||
const char l_linger_key[] = "l_linger";
|
||||
|
Loading…
Reference in New Issue
Block a user