| /PHP_TRUNK/sapi/fpm/fpm/ |
| H A D | fpm_events.h | 17 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 D | fpm_process_ctl.c | 175 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 D | fpm_events.c | 36 #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_TRUNK/ext/mssql/ |
| H A D | php_mssql.h | 168 long connect_timeout, timeout; variable
|
| /PHP_TRUNK/ext/pcntl/ |
| H A D | pcntl.c | 985 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_TRUNK/ext/pdo_sqlite/ |
| H A D | sqlite_driver.c | 814 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_TRUNK/ext/standard/ |
| H A D | fsock.c | 38 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 D | http_fopen_wrapper.c | 110 struct timeval timeout; local 173 if (context && php_stream_context_get_option(context, wrapper->wops->label, "timeout", &tmpzval) == SUCCESS) { 176 timeout.tv_sec = (time_t) Z_DVAL_PP(tmpzval); 177 timeout.tv_usec = (size_t) ((Z_DVAL_PP(tmpzval) - timeout.tv_sec) * 1000000); 179 timeout.tv_sec = FG(default_socket_timeout); 180 timeout.tv_usec = 0; 185 NULL, &timeout, context, &errstr, NULL); 188 php_stream_set_option(stream, PHP_STREAM_OPTION_READ_TIMEOUT, 0, &timeout);
|
| H A D | streamsfuncs.c | 84 /* {{{ 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_TRUNK/main/streams/ |
| H A D | php_stream_transport.h | 32 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::__anon296
|
| H A D | transports.c | 54 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 D | xp_socket.c | 64 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; 640 xparam->op == STREAM_XPORT_OP_CONNECT_ASYNC, xparam->inputs.timeout, 777 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_TRUNK/sapi/fpm/fpm/events/ |
| H A D | devpoll.c | 37 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 D | epoll.c | 33 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 D | kqueue.c | 36 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 D | poll.c | 34 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 D | port.c | 34 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 D | select.c | 39 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_TRUNK/sapi/milter/ |
| H A D | php_milter.c | 589 /* {{{ 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)
|
| /PHP_TRUNK/ext/curl/ |
| H A D | multi.c | 153 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_TRUNK/ext/openssl/ |
| H A D | xp_ssl.c | 276 * We use a small timeout which should encourage the OS to send the data, 443 *timeout; local 466 timeout = sslsock->is_client ? &sslsock->connect_timeout : &sslsock->s.timeout; 467 has_timeout = !sslsock->s.is_blocked && (timeout->tv_sec || timeout->tv_usec); 492 if (elapsed_time.tv_sec > timeout->tv_sec || 493 (elapsed_time.tv_sec == timeout->tv_sec && 494 elapsed_time.tv_usec > timeout->tv_usec)) { 495 php_error_docref(NULL TSRMLS_CC, E_WARNING, "SSL: crypto enabling timeout"); 903 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_TRUNK/main/ |
| H A D | php_network.h | 121 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 D | network.c | 298 /* 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...] |
| /PHP_TRUNK/ext/soap/ |
| H A D | php_http.c | 170 struct timeval *timeout = NULL; local 187 timeout = &tv; 233 timeout,
|
| /PHP_TRUNK/ext/sockets/ |
| H A D | sockets.c | 839 Runs the select() system call on the sets mentioned with a timeout specified by tv_sec and tv_usec */ 1831 int timeout = 0; local 1900 if (getsockopt(php_sock->bsd_socket, level, optname, (char*)&timeout, &optlen) != 0) { 1905 tv.tv_sec = timeout ? timeout / 1000 : 0; 1906 tv.tv_usec = timeout ? (timeout * 1000) % 1000000 : 0; 1940 int timeout; local 2035 timeout = Z_LVAL_PP(sec) * 1000 + Z_LVAL_PP(usec) / 1000; 2037 opt_ptr = &timeout; [all...] |