Home
last modified time | relevance | path

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

/libevent-2.1.12/sample/
H A Dtime-test.c46 struct event *timeout = arg; in timeout_cb() local
62 event_add(timeout, &tv); in timeout_cb()
69 struct event timeout; in main() local
95 event_assign(&timeout, base, -1, flags, timeout_cb, (void*) &timeout); in main()
99 event_add(&timeout, &tv); in main()
H A Dhttps-client.c226 int timeout = -1; in main() local
273 timeout = atoi(argv[i + 1]); in main()
460 if (timeout >= 0) { in main()
461 evhttp_connection_set_timeout(evcon, timeout); in main()
/libevent-2.1.12/
H A Depoll_sub.c59 epoll_wait(int epfd, struct epoll_event *events, int maxevents, int timeout) in epoll_wait() argument
62 return (syscall(__NR_epoll_pwait, epfd, events, maxevents, timeout, NULL, 0)); in epoll_wait()
64 return (syscall(__NR_epoll_wait, epfd, events, maxevents, timeout)); in epoll_wait()
H A Dkqueue.c458 struct timespec timeout = { 0, 0 }; in kq_sig_add() local
471 if (kevent(kqop->kq, &kev, 1, NULL, 0, &timeout) == -1) in kq_sig_add()
492 struct timespec timeout = { 0, 0 }; in kq_sig_del() local
505 if (kevent(kqop->kq, &kev, 1, NULL, 0, &timeout) == -1) in kq_sig_del()
527 struct timespec timeout = { 0, 0 }; in event_kq_add_notify_event_() local
539 if (kevent(kqop->kq, &kev, 1, NULL, 0, &timeout) == -1) { in event_kq_add_notify_event_()
558 struct timespec timeout = { 0, 0 }; in event_kq_notify_base_() local
569 if (kevent(kqop->kq, &kev, 1, NULL, 0, &timeout) == -1) { in event_kq_notify_base_()
H A Depoll.c422 long timeout = -1; in epoll_dispatch() local
437 timeout = 0; in epoll_dispatch()
452 timeout = evutil_tv_to_msec_(tv); in epoll_dispatch()
453 if (timeout < 0 || timeout > MAX_EPOLL_TIMEOUT_MSEC) { in epoll_dispatch()
456 timeout = MAX_EPOLL_TIMEOUT_MSEC; in epoll_dispatch()
465 res = epoll_wait(epollop->epfd, events, epollop->nevents, timeout); in epoll_dispatch()
H A Ddevpoll.c173 int i, res, timeout = -1; in devpoll_dispatch() local
179 timeout = tv->tv_sec * 1000 + (tv->tv_usec + 999) / 1000; in devpoll_dispatch()
183 dvp.dp_timeout = timeout; in devpoll_dispatch()
H A Dhttp-internal.h80 struct timeval timeout; /* timeout for events */ member
153 struct timeval timeout; member
H A Devrpc.c523 pool->timeout = -1; in evrpc_pool_new()
596 if (!evutil_timerisset(&connection->timeout)) in evrpc_pool_add_connection()
597 evhttp_connection_set_timeout(connection, pool->timeout); in evrpc_pool_add_connection()
626 pool->timeout = timeout_in_secs; in evrpc_pool_set_timeout()
735 if (pool->timeout > 0) { in evrpc_schedule_request_closure()
741 tv.tv_sec = pool->timeout; in evrpc_schedule_request_closure()
H A Devrpc-internal.h93 int timeout; member
H A Dhttp.c1634 if (!evutil_timerisset(&evcon->timeout)) { in evhttp_connection_cb()
1639 bufferevent_set_timeouts(evcon->bufev, &evcon->timeout, &evcon->timeout); in evhttp_connection_cb()
2397 evutil_timerclear(&evcon->timeout); in evhttp_connection_base_bufferevent_new()
2512 evcon->timeout = *tv; in evhttp_connection_set_timeout_tv()
2513 bufferevent_set_timeouts(evcon->bufev, &evcon->timeout, &evcon->timeout); in evhttp_connection_set_timeout_tv()
2517 evutil_timerclear(&evcon->timeout); in evhttp_connection_set_timeout_tv()
2605 bufferevent_set_timeouts(evcon->bufev, &evcon->timeout, &evcon->timeout); in evhttp_connection_connect_()
3677 evutil_timerclear(&http->timeout); in evhttp_new_object()
3863 http->timeout = *tv; in evhttp_set_timeout_tv()
3865 evutil_timerclear(&http->timeout); in evhttp_set_timeout_tv()
[all …]
H A Devdns.c507 struct timeval timeout; in nameserver_probe_failed() local
524 timeout.tv_sec *= TIMEOUT_BACKOFF_FACTOR; in nameserver_probe_failed()
526 if (timeout.tv_usec > 1000000) { in nameserver_probe_failed()
527 timeout.tv_sec += timeout.tv_usec / 1000000; in nameserver_probe_failed()
528 timeout.tv_usec %= 1000000; in nameserver_probe_failed()
531 if (timeout.tv_sec > MAX_PROBE_TIMEOUT) { in nameserver_probe_failed()
532 timeout.tv_sec = MAX_PROBE_TIMEOUT; in nameserver_probe_failed()
533 timeout.tv_usec = 0; in nameserver_probe_failed()
4328 struct event timeout; member
4372 event_del(&data->timeout); in free_getaddrinfo_request()
[all …]
H A Dwhatsnew-2.1.txt145 We now have an event_remove_timer() function to remove the timeout on
148 of "event_add(ev, NULL)" on an already-added event with a timeout. But
419 retry timeout.
518 however, this structure became redundant: every pending timeout event
519 is stored in the timeout heap or in one of the common_timeout queues,
527 0-second timeout to ensure that a callback will get run 'as soon as
530 timeout pool. (People who are using this pattern should also consider
534 timeout in the event loop was adjusted--whether it had become earlier
538 The timeout heap code is now optimized to perform fewer comparisons
539 and shifts when changing or removing a timeout.
H A DChangeLog22 o tinytest: support timeout on Windows (794e8f75 yuangongji)
175 o tinytest: implement per-test timeout (via alarm() under !win32 only)
318 timeout for some tests (to reduce number of failures due to timing issues),
606 o sample/https-client: add -timeout option (4637aa8 Azat Khuzhin)
1013 o Initialize async bufferevent timeout CBs unconditionally (af9b2a7)
1146 o Double-check next timeout when adding events (9443868 Nate Rosenblum)
1890 timeout (e47042f, 09cbc3d)
1891 o Remove a needless base-notify when rescheduling the first timeout (77a96fd)
2072 o added timeout debug logs to include event ptr. (4b7d298 Mark Ellzey)
2086 o Reduce the timeout in the main/fork test. (ab14f7c)
[all …]
H A DChangeLog-1.453 o Fix a bug when removing a timeout from the heap. [Patch from Marko Kreen]
98 …o Fix a bug where setting the timeout on a bufferevent would take not effect if the event was alre…
141 o do not delete uninitialized timeout event in evdns
231 …o We do not need to specially remove a timeout before calling event_del; patch from Christopher La…
H A Dwhatsnew-2.0.txt191 Previously, it wasn't useful to set a timeout on a persistent event:
192 the timeout would trigger once, and never again. This is not what
194 triggering of the event to re-set the timeout. So now, if you set
264 that a given timeout interval will be very common, and should use a linked
H A DChangeLog-2.03 o ssl: Don't discard SSL read event when timeout and read come close together (576b29f)
26 o evdns: Avoid segfault on weird timeout during name lookup. (dc32077 Greg Hazel)
343 o Make test-eof fail with a timeout if we never get an eof. (05a2c22 Harlan Stenn)
578 o Correctly detect failure to delete bufferevent read-timeout event (da6e7cd)
669 o Remember to initialize timeout events for bufferevent_async (de1f5d6 Christopher Davis)
872 o Make the initial nameserver probe timeout configurable. (1e56a32)
1063 …o Alternative queue-based timeout algorithm for programs that use a large number of timeouts with …
1087 o Fix a bug when removing a timeout from the heap. [Patch from Marko Kreen]
1194 o do not delete uninitialized timeout event in evdns
H A DVagrantfile7 # - timeout 30min, to avoid hungs
H A Devent.c1453 struct timeval timeout = head->ev_timeout; in common_timeout_schedule() local
1454 timeout.tv_usec &= MICROSECONDS_MASK; in common_timeout_schedule()
1455 event_add_nolock_(&ctl->timeout_event, &timeout, 1); in common_timeout_schedule()
/libevent-2.1.12/test/
H A Dtest-changelist.c165 struct event* timeout; in main() local
190 timeout = evtimer_new(base,timeout_cb,&timeout); in main()
197 evtimer_add(timeout, &tv); in main()
206 event_free(timeout); in main()
H A Dtest-eof.c54 struct timeval timeout = {60, 0}; variable
74 event_add(arg, &timeout); in read_cb()
111 event_add(&ev, &timeout); in main()
H A Dtest-closed.c52 struct timeval timeout = {3, 0}; variable
103 event_add(ev, &timeout); in main()
H A Dregress_bufferevent.c1105 struct timeval timeout = { 30, 0 }; in trigger_readcb() local
1130 event_base_once(base, -1, EV_TIMEOUT, trigger_failure_cb, NULL, &timeout); in trigger_readcb()
H A Dregress_http.c1472 const char *timeout = (type & NS_TIMEOUT) ? "6" : "3"; in http_cancel_test() local
1486 evdns_base_set_option(dns_base, "timeout:", timeout); in http_cancel_test()
1487 evdns_base_set_option(dns_base, "initial-probe-timeout:", timeout); in http_cancel_test()
/libevent-2.1.12/include/event2/
H A Dthread.h169 const struct timeval *timeout);
H A Devent.h1233 int event_add(struct event *ev, const struct timeval *timeout);