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

12

/PHP_TRUNK/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_TRUNK/
H A Dserver-tests.php242 public $timeout = 4; variable
260 timeout
285 if (isset($this->options['timeout']))
286 $this->timeout = (int)$this->options['timeout']; variable
371 if ($this->timeout > 0) {
372 $fp = fsockopen($host, $port, $this->errno, $this->errmsg, $this->timeout);
380 if ($this->timeout > 0) {
383 @socket_set_timeout($fp, $this->timeout);
1295 if (isset($this->conf['timeout']))
[all...]
/PHP_TRUNK/ext/mssql/
H A Dphp_mssql.h168 long connect_timeout, timeout; variable
/PHP_TRUNK/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_TRUNK/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::__anon244
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, zend_string **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, zend_string **error_text, int *error_code TSRMLS_DC) argument
284 php_stream_xport_accept(php_stream *stream, php_stream **client, zend_string **textaddr, void **addr, socklen_t *addrlen, struct timeval *timeout, zend_string **error_text TSRMLS_DC) argument
[all...]
H A Dxp_socket.c71 if (sock->timeout.tv_sec == -1)
74 ptimeout = &sock->timeout;
132 if (sock->timeout.tv_sec == -1)
135 ptimeout = &sock->timeout;
166 nr_bytes = recv(sock->socket, buf, XP_SOCK_BUF_SIZE(count), (sock->is_blocked && sock->timeout.tv_sec != -1) ? MSG_DONTWAIT : 0);
207 * We use a small timeout which should encourage the OS to send the data,
298 if (sock->timeout.tv_sec == -1) {
302 tv = sock->timeout;
328 sock->timeout = *(struct timeval*)ptrparam;
681 xparam->op == STREAM_XPORT_OP_CONNECT_ASYNC, xparam->inputs.timeout,
828 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_TRUNK/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_TRUNK/ext/curl/
H A Dmulti.c149 static void _make_timeval_struct(struct timeval *to, double timeout) /* {{{ */ argument
153 conv = (unsigned long) (timeout * 1000000.0);
159 /* {{{ proto int curl_multi_select(resource mh[, double timeout])
169 double timeout = 1.0; local
172 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r|d", &z_mh, &timeout) == FAILURE) {
178 _make_timeval_struct(&to, timeout);
/PHP_TRUNK/ext/pcntl/
H A Dpcntl.c976 struct timespec timeout; local
1008 timeout.tv_sec = (time_t) tv_sec;
1009 timeout.tv_nsec = tv_nsec;
1010 signo = sigtimedwait(&set, &siginfo, &timeout);
/PHP_TRUNK/ext/pdo_sqlite/
H A Dsqlite_driver.c795 php_int_t timeout = 60; local
826 timeout = pdo_attr_ival(driver_options, PDO_ATTR_TIMEOUT, timeout TSRMLS_CC);
828 sqlite3_busy_timeout(H->db, timeout * 1000);
/PHP_TRUNK/ext/soap/
H A Dphp_http.c168 struct timeval *timeout = NULL; local
185 timeout = &tv;
231 timeout,
/PHP_TRUNK/ext/sockets/
H A Dsockets.c830 Runs the select() system call on the sets mentioned with a timeout specified by tv_sec and tv_usec */
1835 int timeout = 0; local
1904 if (getsockopt(php_sock->bsd_socket, level, optname, (char*)&timeout, &optlen) != 0) {
1909 tv.tv_sec = timeout ? timeout / 1000 : 0;
1910 tv.tv_usec = timeout ? (timeout * 1000) % 1000000 : 0;
1944 int timeout; local
2039 timeout = Z_IVAL_P(sec) * 1000 + Z_IVAL_P(usec) / 1000;
2041 opt_ptr = &timeout;
[all...]
/PHP_TRUNK/ext/standard/
H A Dfsock.c38 double timeout = FG(default_socket_timeout); local
50 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|iz/z/d", &host, &host_len, &port, &zerrno, &zerrstr, &timeout) == FAILURE) {
65 /* prepare the timeout value for use */
66 conv = (unsigned long) (timeout * 1000000.0);
118 /* {{{ 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.c138 struct timeval timeout; local
202 if (context && (tmpzval = php_stream_context_get_option(context, wrapper->wops->label, "timeout")) != NULL) {
204 timeout.tv_sec = (time_t) d;
205 timeout.tv_usec = (size_t) ((d - timeout.tv_sec) * 1000000);
207 timeout.tv_sec = FG(default_socket_timeout);
208 timeout.tv_usec = 0;
213 NULL, &timeout, context, &errstr, NULL);
216 php_stream_set_option(stream, PHP_STREAM_OPTION_READ_TIMEOUT, 0, &timeout);
H A Dstreamsfuncs.c86 /* {{{ proto resource stream_socket_client(string remoteaddress [, long &errcode [, string &errstring [, double timeout [, long flags [, resource context]]]]])
93 double timeout = FG(default_socket_timeout); local
105 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|z/z/dir", &host, &host_len, &zerrno, &zerrstr, &timeout, &flags, &zcontext) == FAILURE) {
115 /* prepare the timeout value for use */
116 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
251 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r|dz/", &zstream, &timeout, &zpeername) == FAILURE) {
257 /* prepare the timeout value for use */
258 conv = (php_timeout_ull) (timeout * 1000000.
[all...]
/PHP_TRUNK/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) {
705 * using an optional timeout.
717 struct timeval *timeout,
727 n = php_pollfd_for(srvsock, PHP_POLLREADABLE, timeout);
761 /* Connect to a remote host using an interruptible connect with optional timeout.
769 int socktype, int asynchronous, struct timeval *timeout, zend_strin
303 php_network_connect_socket(php_socket_t sockfd, const struct sockaddr *addr, socklen_t addrlen, int asynchronous, struct timeval *timeout, zend_string **error_string, int *error_code) argument
713 php_network_accept_incoming(php_socket_t srvsock, zend_string **textaddr, struct sockaddr **addr, socklen_t *addrlen, struct timeval *timeout, zend_string **error_string, int *error_code TSRMLS_DC) argument
768 php_network_connect_socket_to_host(const char *host, unsigned short port, int socktype, int asynchronous, struct timeval *timeout, zend_string **error_string, int *error_code, char *bindto, unsigned short bindport, long sockopts TSRMLS_DC) argument
1109 _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
1186 php_poll2(php_pollfd *ufds, unsigned int nfds, int timeout) argument
[all...]
H A Dphp_network.h127 PHPAPI int php_poll2(php_pollfd *ufds, unsigned int nfds, int timeout);
146 # define php_poll2(ufds, nfds, timeout) poll(ufds, nfds, timeout)
149 /* timeval-to-timeout (for poll(2)) */
160 * Returns 0 on timeout, -1 on error, or the event mask (ala poll(2)).
180 static inline int php_pollfd_for_ms(php_socket_t fd, int events, int timeout) argument
189 n = php_poll2(&p, 1, timeout);
237 int socktype, int asynchronous, struct timeval *timeout, zend_string **error_string,
245 struct timeval *timeout,
249 #define php_connect_nonb(sock, addr, addrlen, timeout) \
284 struct timeval timeout; member in struct:_php_netstream_data_t
[all...]

Completed in 31 milliseconds

12