Home
last modified time | relevance | path

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

/PHP-7.3/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.3/sapi/fpm/fpm/
H A Dfpm_events.h33 int (*init)(int max_fd);
/PHP-7.3/main/
H A Dnetwork.c1185 PHPAPI void _php_emit_fd_setsize_warning(int max_fd) argument
1197 FD_SETSIZE, max_fd, (max_fd + 128) & ~127);
1205 FD_SETSIZE, max_fd, (max_fd + 1024) & ~1023);
1216 php_socket_t max_fd = SOCK_ERR; local
1223 if (ufds[i].fd > max_fd)
1224 max_fd = ufds[i].fd;
1227 PHP_SAFE_MAX_FD(max_fd, nfds + 1);
1255 n = select(max_fd + 1, &rset, &wset, &eset, timeout >= 0 ? &tv : NULL);
H A Dphp_network.h209 PHPAPI void _php_emit_fd_setsize_warning(int max_fd);
/PHP-7.3/ext/standard/
H A Dstreamsfuncs.c624 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
654 if (this_fd > *max_fd) { in stream_array_to_fd_set()
655 *max_fd = this_fd; in stream_array_to_fd_set()
769 php_socket_t max_fd = 0; in PHP_FUNCTION() local
789 set_count = stream_array_to_fd_set(r_array, &rfds, &max_fd); in PHP_FUNCTION()
796 set_count = stream_array_to_fd_set(w_array, &wfds, &max_fd); in PHP_FUNCTION()
803 set_count = stream_array_to_fd_set(e_array, &efds, &max_fd); in PHP_FUNCTION()
814 PHP_SAFE_MAX_FD(max_fd, max_set_count); in PHP_FUNCTION()
850 retval = php_select(max_fd+1, &rfds, &wfds, &efds, tv_p); in PHP_FUNCTION()
854 errno, strerror(errno), max_fd); in PHP_FUNCTION()
/PHP-7.3/sapi/cli/
H A Dphp_cli_server.c115 php_socket_t max_fd; member
759 poller->max_fd = -1; in php_cli_server_poller_ctor()
771 if (fd > poller->max_fd) { in php_cli_server_poller_add()
772 poller->max_fd = fd; in php_cli_server_poller_add()
785 if (fd == poller->max_fd) { in php_cli_server_poller_remove()
792 poller->max_fd = fd; in php_cli_server_poller_remove()
801 return php_select(poller->max_fd + 1, &poller->active.rfds, &poller->active.wfds, NULL, tv); in php_cli_server_poller_poll()
849 const php_socket_t max_fd = poller->max_fd; in php_cli_server_poller_iter_on_active() local
851 for (fd=0 ; fd<=max_fd ; fd++) { in php_cli_server_poller_iter_on_active()
/PHP-7.3/ext/sockets/
H A Dsockets.c892 static int php_sock_array_to_fd_set(zval *sock_array, fd_set *fds, PHP_SOCKET *max_fd) /* {{{ */ argument
906 if (php_sock->bsd_socket > *max_fd) {
907 *max_fd = php_sock->bsd_socket;
965 PHP_SOCKET max_fd = 0; local
977 if (r_array != NULL) sets += php_sock_array_to_fd_set(r_array, &rfds, &max_fd);
978 if (w_array != NULL) sets += php_sock_array_to_fd_set(w_array, &wfds, &max_fd);
979 if (e_array != NULL) sets += php_sock_array_to_fd_set(e_array, &efds, &max_fd);
986 PHP_SAFE_MAX_FD(max_fd, 0); /* someone needs to make this look more like stream_socket_select */
1004 retval = select(max_fd+1, &rfds, &wfds, &efds, tv_p);
/PHP-7.3/ext/mysqlnd/
H A Dmysqlnd_connection.c2503 mysqlnd_stream_array_to_fd_set(MYSQLND ** conn_array, fd_set * fds, php_socket_t * max_fd) argument
2526 if (this_fd > *max_fd) {
2527 *max_fd = this_fd;
2588 php_socket_t max_fd = 0; local
2604 set_count = mysqlnd_stream_array_to_fd_set(r_array, &rfds, &max_fd);
2612 set_count = mysqlnd_stream_array_to_fd_set(e_array, &efds, &max_fd);
2625 PHP_SAFE_MAX_FD(max_fd, max_set_count);
2638 retval = php_select(max_fd + 1, &rfds, &wfds, &efds, tv_p);
2642 errno, strerror(errno), max_fd);

Completed in 61 milliseconds