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

12

/PHP_5_3/ext/sqlite/libsqlite/src/
H A Dmain.c861 ** again until a timeout value is reached. The timeout value is
876 int timeout = (int)(long)Timeout; local
886 if( prior + delay > timeout ){
887 delay = timeout - prior;
893 int timeout = (int)(long)Timeout;
894 if( (count+1)*1000 > timeout ){
/PHP_5_3/sapi/fpm/fpm/
H A Dfpm_events.c32 #define fpm_event_set_timeout(ev, now) timeradd(&(now), &(ev)->frequency, &(ev)->timeout);
371 unsigned long int timeout; local
382 /* search in the timeout queue for the next timer to trigger */
386 ms = q->ev->timeout;
388 if (timercmp(&q->ev->timeout, &ms, <)) {
389 ms = q->ev->timeout;
395 /* 1s timeout if none has been set */
397 timeout = 1000;
400 timeout = (tmp.tv_sec * 1000) + (tmp.tv_usec / 1000) + 1;
403 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);
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);
/PHP_5_3/ext/curl/
H A Dmulti.c158 static void _make_timeval_struct(struct timeval *to, double timeout) /* {{{ */ argument
162 conv = (unsigned long) (timeout * 1000000.0);
168 /* {{{ proto int curl_multi_select(resource mh[, double timeout])
178 double timeout = 1.0; local
181 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r|d", &z_mh, &timeout) == FAILURE) {
187 _make_timeval_struct(&to, timeout);
/PHP_5_3/ext/mssql/
H A Dphp_mssql.h168 long connect_timeout, timeout; variable
/PHP_5_3/ext/openssl/
H A Dxp_ssl.c276 * We use a small timeout which should encourage the OS to send the data,
427 *timeout; local
450 timeout = sslsock->is_client ? &sslsock->connect_timeout : &sslsock->s.timeout;
451 has_timeout = !sslsock->s.is_blocked && (timeout->tv_sec || timeout->tv_usec);
476 if (elapsed_time.tv_sec > timeout->tv_sec ||
477 (elapsed_time.tv_sec == timeout->tv_sec &&
478 elapsed_time.tv_usec > timeout->tv_usec)) {
479 php_error_docref(NULL TSRMLS_CC, E_WARNING, "SSL: crypto enabling timeout");
887 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...]
/PHP_5_3/ext/pcntl/
H A Dpcntl.c979 struct timespec timeout; local
1014 timeout.tv_sec = (time_t) tv_sec;
1015 timeout.tv_nsec = tv_nsec;
1016 signo = sigtimedwait(&set, &siginfo, &timeout);
/PHP_5_3/ext/pdo_sqlite/
H A Dsqlite_driver.c819 long timeout = 60; local
850 timeout = pdo_attr_lval(driver_options, PDO_ATTR_TIMEOUT, timeout TSRMLS_CC);
852 sqlite3_busy_timeout(H->db, timeout * 1000);
/PHP_5_3/ext/snmp/
H A Dsnmp.c120 ZEND_ARG_INFO(0, timeout)
128 ZEND_ARG_INFO(0, timeout)
136 ZEND_ARG_INFO(0, timeout)
144 ZEND_ARG_INFO(0, timeout)
172 ZEND_ARG_INFO(0, timeout)
180 ZEND_ARG_INFO(0, timeout)
188 ZEND_ARG_INFO(0, timeout)
196 ZEND_ARG_INFO(0, timeout)
204 ZEND_ARG_INFO(0, timeout)
214 ZEND_ARG_INFO(0, timeout)
781 long timeout = SNMP_DEFAULT_TIMEOUT; local
1179 long timeout = SNMP_DEFAULT_TIMEOUT; local
[all...]
/PHP_5_3/ext/sqlite/
H A Dpdo_sqlite2.c574 long timeout = 60; local
605 timeout = pdo_attr_lval(driver_options, PDO_ATTR_TIMEOUT, timeout TSRMLS_CC);
607 sqlite_busy_timeout(H->db, timeout * 1000);
/PHP_5_3/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.c110 struct timeval timeout; local
172 if (context && php_stream_context_get_option(context, wrapper->wops->label, "timeout", &tmpzval) == SUCCESS) {
175 timeout.tv_sec = (time_t) Z_DVAL_PP(tmpzval);
176 timeout.tv_usec = (size_t) ((Z_DVAL_PP(tmpzval) - timeout.tv_sec) * 1000000);
178 timeout.tv_sec = FG(default_socket_timeout);
179 timeout.tv_usec = 0;
184 NULL, &timeout, context, &errstr, NULL);
187 php_stream_set_option(stream, PHP_STREAM_OPTION_READ_TIMEOUT, 0, &timeout);
/PHP_5_3/main/
H A Dnetwork.c295 /* Connect to a socket using an interruptible connect with optional timeout.
304 struct timeval *timeout,
344 * failing only due to the timeout and not immediately as would be
348 if ((n = php_pollfd_for(sockfd, POLLOUT|POLLPRI, timeout)) == 0) {
350 if ((n = php_pollfd_for(sockfd, PHP_POLLREADABLE|POLLOUT, timeout)) == 0) {
697 * using an optional timeout.
709 struct timeval *timeout,
719 n = php_pollfd_for(srvsock, PHP_POLLREADABLE, timeout);
753 /* Connect to a remote host using an interruptible connect with optional timeout.
761 int socktype, int asynchronous, struct timeval *timeout, cha
300 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
705 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
760 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
1052 _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...]
H A Dphp_network.h119 PHPAPI int php_poll2(php_pollfd *ufds, unsigned int nfds, int timeout);
138 # define php_poll2(ufds, nfds, timeout) poll(ufds, nfds, timeout)
141 /* timeval-to-timeout (for poll(2)) */
152 * Returns 0 on timeout, -1 on error, or the event mask (ala poll(2)).
172 static inline int php_pollfd_for_ms(php_socket_t fd, int events, int timeout) argument
181 n = php_poll2(&p, 1, timeout);
224 int socktype, int asynchronous, struct timeval *timeout, char **error_string,
232 struct timeval *timeout,
236 #define php_connect_nonb(sock, addr, addrlen, timeout) \
271 struct timeval timeout; member in struct:_php_netstream_data_t
[all...]
/PHP_5_3/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::__anon267
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;
644 xparam->op == STREAM_XPORT_OP_CONNECT_ASYNC, xparam->inputs.timeout,
781 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_3/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 Depoll.c33 static int fpm_event_epoll_wait(struct fpm_event_queue_s *queue, unsigned long int timeout);
114 * wait for events or timeout
116 static int fpm_event_epoll_wait(struct fpm_event_queue_s *queue, unsigned long int timeout) /* {{{ */ argument
123 /* wait for inconming event or timeout */
124 ret = epoll_wait(epollfd, epollfds, nepollfds, 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 */
/PHP_5_3/sapi/milter/
H A Dphp_milter.c589 /* {{{ proto void smfi_settimeout(long timeout)
593 long timeout; local
598 } else if (zend_parse_parameters(1 TSRMLS_CC, "l", &timeout) == SUCCESS) {
599 smfi_settimeout(timeout);
788 ZEND_ARG_INFO(0, timeout)

Completed in 31 milliseconds

12