Home
last modified time | relevance | path

Searched refs:max_fd (Results 1 – 9 of 9) sorted by relevance

/PHP-7.4/win32/
H A Dselect.c33 PHPAPI int php_select(php_socket_t max_fd, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval… in php_select() argument
46 if (max_fd > (php_socket_t)INT_MAX) { in php_select()
65 for (i = 0; (uint32_t)i < max_fd; i++) { in php_select()
H A Dselect.h24 PHPAPI int php_select(php_socket_t max_fd, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval…
/PHP-7.4/sapi/fpm/fpm/
H A Dfpm_events.h33 int (*init)(int max_fd);
/PHP-7.4/main/
H A Dnetwork.c1159 PHPAPI void _php_emit_fd_setsize_warning(int max_fd) argument
1171 FD_SETSIZE, max_fd, (max_fd + 128) & ~127);
1179 FD_SETSIZE, max_fd, (max_fd + 1024) & ~1023);
1190 php_socket_t max_fd = SOCK_ERR; local
1197 if (ufds[i].fd > max_fd)
1198 max_fd = ufds[i].fd;
1201 PHP_SAFE_MAX_FD(max_fd, nfds + 1);
1229 n = select(max_fd + 1, &rset, &wset, &eset, timeout >= 0 ? &tv : NULL);
H A Dphp_network.h207 PHPAPI void _php_emit_fd_setsize_warning(int max_fd);
/PHP-7.4/ext/standard/
H A Dstreamsfuncs.c607 static int stream_array_to_fd_set(zval *stream_array, fd_set *fds, php_socket_t *max_fd) in stream_array_to_fd_set() argument
637 if (this_fd > *max_fd) { in stream_array_to_fd_set()
638 *max_fd = this_fd; in stream_array_to_fd_set()
752 php_socket_t max_fd = 0; in PHP_FUNCTION() local
772 set_count = stream_array_to_fd_set(r_array, &rfds, &max_fd); in PHP_FUNCTION()
779 set_count = stream_array_to_fd_set(w_array, &wfds, &max_fd); in PHP_FUNCTION()
786 set_count = stream_array_to_fd_set(e_array, &efds, &max_fd); in PHP_FUNCTION()
797 PHP_SAFE_MAX_FD(max_fd, max_set_count); in PHP_FUNCTION()
833 retval = php_select(max_fd+1, &rfds, &wfds, &efds, tv_p); in PHP_FUNCTION()
837 errno, strerror(errno), max_fd); in PHP_FUNCTION()
/PHP-7.4/ext/sockets/
H A Dsockets.c906 static int php_sock_array_to_fd_set(zval *sock_array, fd_set *fds, PHP_SOCKET *max_fd) /* {{{ */ argument
920 if (php_sock->bsd_socket > *max_fd) {
921 *max_fd = php_sock->bsd_socket;
979 PHP_SOCKET max_fd = 0; local
991 if (r_array != NULL) sets += php_sock_array_to_fd_set(r_array, &rfds, &max_fd);
992 if (w_array != NULL) sets += php_sock_array_to_fd_set(w_array, &wfds, &max_fd);
993 if (e_array != NULL) sets += php_sock_array_to_fd_set(e_array, &efds, &max_fd);
1000 PHP_SAFE_MAX_FD(max_fd, 0); /* someone needs to make this look more like stream_socket_select */
1018 retval = select(max_fd+1, &rfds, &wfds, &efds, tv_p);
/PHP-7.4/sapi/cli/
H A Dphp_cli_server.c116 php_socket_t max_fd; member
831 poller->max_fd = -1; in php_cli_server_poller_ctor()
843 if (fd > poller->max_fd) { in php_cli_server_poller_add()
844 poller->max_fd = fd; in php_cli_server_poller_add()
857 if (fd == poller->max_fd) { in php_cli_server_poller_remove()
864 poller->max_fd = fd; in php_cli_server_poller_remove()
873 return php_select(poller->max_fd + 1, &poller->active.rfds, &poller->active.wfds, NULL, tv); in php_cli_server_poller_poll()
921 const php_socket_t max_fd = poller->max_fd; in php_cli_server_poller_iter_on_active() local
923 for (fd=0 ; fd<=max_fd ; fd++) { in php_cli_server_poller_iter_on_active()
/PHP-7.4/ext/mysqlnd/
H A Dmysqlnd_connection.c2509 mysqlnd_stream_array_to_fd_set(MYSQLND ** conn_array, fd_set * fds, php_socket_t * max_fd) argument
2532 if (this_fd > *max_fd) {
2533 *max_fd = this_fd;
2594 php_socket_t max_fd = 0; local
2610 set_count = mysqlnd_stream_array_to_fd_set(r_array, &rfds, &max_fd);
2618 set_count = mysqlnd_stream_array_to_fd_set(e_array, &efds, &max_fd);
2631 PHP_SAFE_MAX_FD(max_fd, max_set_count);
2644 retval = php_select(max_fd + 1, &rfds, &wfds, &efds, tv_p);
2648 errno, strerror(errno), max_fd);

Completed in 37 milliseconds