Searched refs:timeout (Results 1 - 25 of 51) sorted by relevance

123

/PHP_5_6/sapi/fpm/fpm/
H A Dfpm_events.c36 #define fpm_event_set_timeout(ev, now) timeradd(&(now), &(ev)->frequency, &(ev)->timeout);
379 unsigned long int timeout; local
390 /* search in the timeout queue for the next timer to trigger */
394 ms = q->ev->timeout;
396 if (timercmp(&q->ev->timeout, &ms, <)) {
397 ms = q->ev->timeout;
403 /* 1s timeout if none has been set */
405 timeout = 1000;
408 timeout = (tmp.tv_sec * 1000) + (tmp.tv_usec / 1000) + 1;
411 ret = module->wait(fpm_event_queue_fd, timeout);
[all...]
H A Dfpm_events.h17 struct timeval timeout; /* next time to trigger */ member in struct:fpm_event_s
37 int (*wait)(struct fpm_event_queue_s *queue, unsigned long int timeout);
46 int fpm_event_add(struct fpm_event_s *ev, unsigned long int timeout);
/PHP_5_6/ext/mbstring/libmbfl/tests/conv_encoding.tests/
H A Dcp51932_cp50220raw.exp3 set timeout 1
H A Dujis_sjis.exp3 set timeout 1
H A Dutf8_sjis.exp3 set timeout 1
H A Dyensign.exp2 set timeout 1
/PHP_5_6/ext/mbstring/libmbfl/tests/strcut.tests/
H A Diso2022jp.exp8 set timeout 10
H A Dujis.exp8 set timeout 1
H A Dutf8.exp8 set timeout 1
/PHP_5_6/ext/mbstring/libmbfl/tests/strwidth.tests/
H A Dstrwidth.exp3 set timeout 1
/PHP_5_6/win32/
H A Dtime.c150 int timeout = value->it_value.tv_sec * 1000 + value->it_value.tv_usec;
155 if (timeout > 0) {
164 realtimer = timeSetEvent(timeout, 100, (LPTIMECALLBACK) setitimer_timeout, (UINT) msg, repeat);
168 virttimer = timeSetEvent(timeout, 100, (LPTIMECALLBACK) setitimer_timeout, (UINT) msg, repeat);
172 proftimer = timeSetEvent(timeout, 100, (LPTIMECALLBACK) setitimer_timeout, (UINT) msg, repeat);
/PHP_5_6/ext/standard/
H A Dfsock.c38 double timeout = FG(default_socket_timeout); local
50 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|lzzd", &host, &host_len, &port, &zerrno, &zerrstr, &timeout) == FAILURE) {
65 /* prepare the timeout value for use */
66 conv = (unsigned long) (timeout * 1000000.0);
119 /* {{{ proto resource fsockopen(string hostname, int port [, int errno [, string errstr [, float timeout]]])
126 /* {{{ proto resource pfsockopen(string hostname, int port [, int errno [, string errstr [, float timeout]]])
/PHP_5_6/main/
H A Dnetwork.c298 /* Connect to a socket using an interruptible connect with optional timeout.
307 struct timeval *timeout,
347 * failing only due to the timeout and not immediately as would be
351 if ((n = php_pollfd_for(sockfd, POLLOUT|POLLPRI, timeout)) == 0) {
353 if ((n = php_pollfd_for(sockfd, PHP_POLLREADABLE|POLLOUT, timeout)) == 0) {
700 * using an optional timeout.
712 struct timeval *timeout,
722 n = php_pollfd_for(srvsock, PHP_POLLREADABLE, timeout);
756 /* Connect to a remote host using an interruptible connect with optional timeout.
764 int socktype, int asynchronous, struct timeval *timeout, cha
303 php_network_connect_socket(php_socket_t sockfd, const struct sockaddr *addr, socklen_t addrlen, int asynchronous, struct timeval *timeout, char **error_string, int *error_code) argument
708 php_network_accept_incoming(php_socket_t srvsock, char **textaddr, long *textaddrlen, struct sockaddr **addr, socklen_t *addrlen, struct timeval *timeout, char **error_string, int *error_code TSRMLS_DC) argument
763 php_network_connect_socket_to_host(const char *host, unsigned short port, int socktype, int asynchronous, struct timeval *timeout, char **error_string, int *error_code, char *bindto, unsigned short bindport TSRMLS_DC) argument
1055 _php_stream_sock_open_host(const char *host, unsigned short port, int socktype, struct timeval *timeout, const char *persistent_id STREAMS_DC TSRMLS_DC) argument
1132 php_poll2(php_pollfd *ufds, unsigned int nfds, int timeout) argument
[all...]
H A Dphp_network.h121 PHPAPI int php_poll2(php_pollfd *ufds, unsigned int nfds, int timeout);
140 # define php_poll2(ufds, nfds, timeout) poll(ufds, nfds, timeout)
143 /* timeval-to-timeout (for poll(2)) */
154 * Returns 0 on timeout, -1 on error, or the event mask (ala poll(2)).
174 static inline int php_pollfd_for_ms(php_socket_t fd, int events, int timeout) argument
183 n = php_poll2(&p, 1, timeout);
231 int socktype, int asynchronous, struct timeval *timeout, char **error_string,
239 struct timeval *timeout,
243 #define php_connect_nonb(sock, addr, addrlen, timeout) \
278 struct timeval timeout; member in struct:_php_netstream_data_t
[all...]
/PHP_5_6/sapi/fpm/fpm/events/
H A Ddevpoll.c37 static int fpm_event_devpoll_wait(struct fpm_event_queue_s *queue, unsigned long int timeout);
146 * wait for events or timeout
148 static int fpm_event_devpoll_wait(struct fpm_event_queue_s *queue, unsigned long int timeout) /* {{{ */ argument
157 dopoll.dp_timeout = (int)timeout;
159 /* wait for inconming event or timeout */
H A Dkqueue.c36 static int fpm_event_kqueue_wait(struct fpm_event_queue_s *queue, unsigned long int timeout);
117 * wait for events or timeout
119 static int fpm_event_kqueue_wait(struct fpm_event_queue_s *queue, unsigned long int timeout) /* {{{ */ argument
128 t.tv_sec = timeout / 1000;
129 t.tv_nsec = (timeout % 1000) * 1000 * 1000;
131 /* wait for incoming event or timeout */
H A Dpoll.c34 static int fpm_event_poll_wait(struct fpm_event_queue_s *queue, unsigned long int timeout);
131 * wait for events or timeout
133 static int fpm_event_poll_wait(struct fpm_event_queue_s *queue, unsigned long int timeout) /* {{{ */ argument
143 /* wait for inconming event or timeout */
144 ret = poll(active_pollfds, npollfds, timeout);
H A Dport.c34 static int fpm_event_port_wait(struct fpm_event_queue_s *queue, unsigned long int timeout);
115 * wait for events or timeout
117 static int fpm_event_port_wait(struct fpm_event_queue_s *queue, unsigned long int timeout) /* {{{ */ argument
122 /* convert timeout into timespec_t */
123 t.tv_sec = (int)(timeout / 1000);
124 t.tv_nsec = (timeout % 1000) * 1000 * 1000;
126 /* wait for inconming event or timeout. We want at least one event or timeout */
131 /* trigger error unless signal interrupt or timeout */
H A Dselect.c39 static int fpm_event_select_wait(struct fpm_event_queue_s *queue, unsigned long int timeout);
84 * wait for events or timeout
86 static int fpm_event_select_wait(struct fpm_event_queue_s *queue, unsigned long int timeout) /* {{{ */ argument
96 /* fill struct timeval with timeout */
97 t.tv_sec = timeout / 1000;
98 t.tv_usec = (timeout % 1000) * 1000;
100 /* wait for inconming event or timeout */
H A Depoll.c33 static int fpm_event_epoll_wait(struct fpm_event_queue_s *queue, unsigned long int timeout);
118 * wait for events or timeout
120 static int fpm_event_epoll_wait(struct fpm_event_queue_s *queue, unsigned long int timeout) /* {{{ */ argument
127 /* wait for inconming event or timeout */
128 ret = epoll_wait(epollfd, epollfds, nepollfds, timeout);
/PHP_5_6/main/streams/
H A Dtransports.c54 struct timeval *timeout,
69 if (timeout == NULL) {
70 timeout = &default_timeout;
77 /* use a 0 second timeout when checking if the socket
133 (char*)name, namelen, persistent_id, options, flags, timeout,
145 timeout, &error_text, error_code TSRMLS_CC)) {
227 struct timeval *timeout,
239 param.inputs.timeout = timeout;
287 struct timeval *timeout,
52 _php_stream_xport_create(const char *name, size_t namelen, int options, int flags, const char *persistent_id, struct timeval *timeout, php_stream_context *context, char **error_string, int *error_code STREAMS_DC TSRMLS_DC) argument
224 php_stream_xport_connect(php_stream *stream, const char *name, size_t namelen, int asynchronous, struct timeval *timeout, char **error_text, int *error_code TSRMLS_DC) argument
284 php_stream_xport_accept(php_stream *stream, php_stream **client, char **textaddr, int *textaddrlen, void **addr, socklen_t *addrlen, struct timeval *timeout, char **error_text TSRMLS_DC) argument
[all...]
H A Dphp_stream_transport.h32 struct timeval *timeout,
51 struct timeval *timeout,
57 #define php_stream_xport_create(name, namelen, options, flags, persistent_id, timeout, context, estr, ecode) \
58 _php_stream_xport_create(name, namelen, options, flags, persistent_id, timeout, context, estr, ecode STREAMS_CC TSRMLS_CC)
70 struct timeval *timeout,
86 struct timeval *timeout,
146 struct timeval *timeout; member in struct:_php_stream_xport_param::__anon3
H A Dxp_socket.c64 if (sock->timeout.tv_sec == -1)
67 ptimeout = &sock->timeout;
125 if (sock->timeout.tv_sec == -1)
128 ptimeout = &sock->timeout;
159 nr_bytes = recv(sock->socket, buf, count, (sock->is_blocked && sock->timeout.tv_sec != -1) ? MSG_DONTWAIT : 0);
196 * We use a small timeout which should encourage the OS to send the data,
282 if (sock->timeout.tv_sec == -1) {
286 tv = sock->timeout;
312 sock->timeout = *(struct timeval*)ptrparam;
641 xparam->op == STREAM_XPORT_OP_CONNECT_ASYNC, xparam->inputs.timeout,
778 php_stream_generic_socket_factory(const char *proto, size_t protolen, const char *resourcename, size_t resourcenamelen, const char *persistent_id, int options, int flags, struct timeval *timeout, php_stream_context *context STREAMS_DC TSRMLS_DC) argument
[all...]
/PHP_5_6/ext/pgsql/tests/
H A Dnonblocking.inc3 function nb_is_readable($stream, $timeout = 1) {
5 return (bool) stream_select($r, $w, $e, $timeout, 0);
7 function nb_is_writable($stream, $timeout = 1) {
9 return (bool) stream_select($r, $w, $e, $timeout, 0);
/PHP_5_6/ext/curl/
H A Dmulti.c153 static void _make_timeval_struct(struct timeval *to, double timeout) /* {{{ */ argument
157 conv = (unsigned long) (timeout * 1000000.0);
163 /* {{{ proto int curl_multi_select(resource mh[, double timeout])
173 double timeout = 1.0; local
176 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r|d", &z_mh, &timeout) == FAILURE) {
182 _make_timeval_struct(&to, timeout);

Completed in 87 milliseconds

123