Searched defs:timeout (Results 1 - 25 of 32) sorted by relevance

12

/PHP_5_5/sapi/fpm/fpm/
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);
H A Dfpm_process_ctl.c175 int sig, timeout; local
187 timeout = fpm_global_config.process_control_timeout;
194 timeout = 1;
199 fpm_pctl_timeout_set(timeout);
460 zlog(ZLOG_DEBUG, "heartbeat have been set up with a timeout of %dms", fpm_globals.heartbeat);
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...]
/PHP_5_5/ext/pcntl/
H A Dpcntl.c985 struct timespec timeout; local
1020 timeout.tv_sec = (time_t) tv_sec;
1021 timeout.tv_nsec = tv_nsec;
1022 signo = sigtimedwait(&set, &siginfo, &timeout);
/PHP_5_5/ext/pdo_sqlite/
H A Dsqlite_driver.c814 long timeout = 60; local
845 timeout = pdo_attr_lval(driver_options, PDO_ATTR_TIMEOUT, timeout TSRMLS_CC);
847 sqlite3_busy_timeout(H->db, timeout * 1000);
/PHP_5_5/ext/soap/
H A Dphp_http.c170 struct timeval *timeout = NULL; local
187 timeout = &tv;
233 timeout,
/PHP_5_5/ext/sockets/
H A Dsockets.c841 Runs the select() system call on the sets mentioned with a timeout specified by tv_sec and tv_usec */
1838 int timeout = 0; local
1907 if (getsockopt(php_sock->bsd_socket, level, optname, (char*)&timeout, &optlen) != 0) {
1912 tv.tv_sec = timeout ? timeout / 1000 : 0;
1913 tv.tv_usec = timeout ? (timeout * 1000) % 1000000 : 0;
1947 int timeout; local
2042 timeout = Z_LVAL_PP(sec) * 1000 + Z_LVAL_PP(usec) / 1000;
2044 opt_ptr = &timeout;
[all...]
/PHP_5_5/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]]])
H A Dhttp_fopen_wrapper.c134 struct timeval timeout; local
197 if (context && php_stream_context_get_option(context, wrapper->wops->label, "timeout", &tmpzval) == SUCCESS) {
200 timeout.tv_sec = (time_t) Z_DVAL_PP(tmpzval);
201 timeout.tv_usec = (size_t) ((Z_DVAL_PP(tmpzval) - timeout.tv_sec) * 1000000);
203 timeout.tv_sec = FG(default_socket_timeout);
204 timeout.tv_usec = 0;
209 NULL, &timeout, context, &errstr, NULL);
212 php_stream_set_option(stream, PHP_STREAM_OPTION_READ_TIMEOUT, 0, &timeout);
H A Dstreamsfuncs.c84 /* {{{ proto resource stream_socket_client(string remoteaddress [, long &errcode [, string &errstring [, double timeout [, long flags [, resource context]]]]])
91 double timeout = FG(default_socket_timeout); local
103 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|zzdlr", &host, &host_len, &zerrno, &zerrstr, &timeout, &flags, &zcontext) == FAILURE) {
113 /* prepare the timeout value for use */
114 conv = (php_timeout_ull) (timeout * 1000000.0);
238 /* {{{ proto resource stream_socket_accept(resource serverstream, [ double timeout [, string &peername ]])
242 double timeout = FG(default_socket_timeout); local
253 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r|dz", &zstream, &timeout, &zpeername) == FAILURE) {
259 /* prepare the timeout value for use */
260 conv = (php_timeout_ull) (timeout * 1000000.
[all...]
/PHP_5_5/main/
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...]
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
1057 _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
1134 php_poll2(php_pollfd *ufds, unsigned int nfds, int timeout) argument
[all...]
/PHP_5_5/main/streams/
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::__anon314
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, long 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, long 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 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, long protolen, char *resourcename, long resourcenamelen, const char *persistent_id, int options, int flags, struct timeval *timeout, php_stream_context *context STREAMS_DC TSRMLS_DC) argument
[all...]
/PHP_5_5/ext/mssql/
H A Dphp_mssql.h168 long connect_timeout, timeout; variable
/PHP_5_5/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_5/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);
/PHP_5_5/sapi/milter/
H A Dphp_milter.c593 /* {{{ proto void smfi_settimeout(long timeout)
597 long timeout; local
602 } else if (zend_parse_parameters(1 TSRMLS_CC, "l", &timeout) == SUCCESS) {
603 smfi_settimeout(timeout);
792 ZEND_ARG_INFO(0, timeout)
/PHP_5_5/ext/openssl/
H A Dxp_ssl.c276 * We use a small timeout which should encourage the OS to send the data,
453 *timeout; local
476 timeout = sslsock->is_client ? &sslsock->connect_timeout : &sslsock->s.timeout;
477 has_timeout = !sslsock->s.is_blocked && (timeout->tv_sec || timeout->tv_usec);
502 if (elapsed_time.tv_sec > timeout->tv_sec ||
503 (elapsed_time.tv_sec == timeout->tv_sec &&
504 elapsed_time.tv_usec > timeout->tv_usec)) {
505 php_error_docref(NULL TSRMLS_CC, E_WARNING, "SSL: crypto enabling timeout");
928 php_openssl_ssl_socket_factory(const char *proto, long protolen, char *resourcename, long resourcenamelen, const char *persistent_id, int options, int flags, struct timeval *timeout, php_stream_context *context STREAMS_DC TSRMLS_DC) argument
[all...]

Completed in 29 milliseconds

12