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 22a5e49 + cc224f7 commit a7d6d9aCopy full SHA for a7d6d9a
main/network.c
@@ -407,6 +407,10 @@ PHPAPI int php_network_connect_socket(php_socket_t sockfd,
407
while (true) {
408
n = php_pollfd_for(sockfd, events, timeout ? &working_timeout : NULL);
409
if (n < 0) {
410
+#ifdef PHP_ASYNC_API
411
+ // We need to update the error information because we called some functions before this.
412
+ error = errno;
413
+#endif
414
if (errno == EINTR) {
415
#ifdef HAVE_GETTIMEOFDAY
416
if (timeout) {
0 commit comments