We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f744c82 + ebbed48 commit 1557bb8Copy full SHA for 1557bb8
sapi/litespeed/lsapi_main.c
@@ -591,7 +591,7 @@ static int sapi_lsapi_activate(void)
591
static sapi_module_struct lsapi_sapi_module =
592
{
593
"litespeed",
594
- "LiteSpeed V8.2",
+ "LiteSpeed V8.3",
595
596
php_lsapi_startup, /* startup */
597
php_module_shutdown_wrapper, /* shutdown */
sapi/litespeed/lsapilib.c
@@ -635,8 +635,8 @@ static inline int isPipe( int fd )
635
636
char achPeer[128];
637
socklen_t len = 128;
638
- if (( getpeername( fd, (struct sockaddr *)achPeer, &len ) != 0 )&&
639
- ( errno == ENOTCONN ))
+ if ((getpeername(fd, (struct sockaddr *)achPeer, &len) != 0 )
+ && (errno == ENOTCONN || errno == ENOTSOCK))
640
return 0;
641
else
642
return 1;
0 commit comments