Willem Toorop
743e04bfd6
Replace ((uint64_t)-1) with TIMEOUT_FOREVER
2016-12-08 14:44:24 +01:00
Willem Toorop
473da8966b
Library fixed for CFLAGS=-Wextra
2016-12-08 14:05:58 +01:00
huitema
702fe1f5d9
Update default_eventloop.c
2016-12-06 12:32:44 -08:00
Christian Huitema
dee33f53b6
Reminder of changes required by the Windows port. This solves the issues 228, 229, 230 and 232.
2016-12-05 11:38:59 -08:00
Willem Toorop
8d05fd7c1b
FD_SETSIZE can be unsigned
2016-03-30 11:57:01 -03:00
Willem Toorop
ab742b34b6
Miscelaneous scheduling fixes and improvements
2016-03-17 16:49:05 +01:00
Willem Toorop
4fd8d3dddd
Replace mini_event extension by default_eventloop
...
* default_eventloop was prototyped in getdns_query and is still in there as my_eventloop
* It interfaces directly with the scheduling primitives of getdns.
* It can operate entirely from stack and does not have to do
any memory allocations or deallocations.
* Adapted configure.ac to allow libunbound to be linked with Windows
(with the removal of winsock_event.c we have no symbol clashed anymore)
* Added STUB_TCP_WOULDBLOCK return code in stub_resolving helper functions,
to anticipate dealing with edge triggered event loops (versus level triggered). (i.e. Windows)
2016-01-12 15:52:14 +01:00
Willem Toorop
caba5f19d5
Merge branch 'develop' into features/windows-support
2015-12-24 11:01:26 +01:00
Willem Toorop
54f3179c0e
Fix libmini_event getting context's mem funcs
2015-12-18 13:57:20 +01:00
Willem Toorop
c8a9da69ea
Fix libuv.c dependencies
2015-12-18 13:50:17 +01:00
Willem Toorop
5663f914fb
Mode debug marco's to own header
...
To reduce dependency location fixes in test directory.
2015-12-18 13:40:52 +01:00
unknown
2d58ed465c
Changes for Windows, Fix configure.ac to take in a winsock option to configure and generafigure, add ifdef's to stub out windows code for other platforms.
2015-11-22 22:38:13 -05:00
Willem Toorop
1f638ccd0b
Internal getdns_mini_event to _getdns_mini_event
2015-08-19 16:26:39 +02:00
Willem Toorop
450aabefcc
Make util symbols private (i.e. prefix _getdns)
2015-08-19 16:07:01 +02:00
Willem Toorop
12567f5338
Fix compiling with --enable-debug-sched
2015-07-13 11:09:56 +02:00
Willem Toorop
01d4275336
Run once with libevent!
2015-05-08 13:12:06 +02:00
Willem Toorop
736f5ff157
No executable flags on source files
...
Thanks Paul Wouters
2015-01-20 12:16:49 +01:00
Willem Toorop
b780db0538
Portability with older systems
...
(tested on SunOS 5.11)
2014-11-07 16:57:24 +01:00
Willem Toorop
4cc4629bdf
Don't expose scheduling side of extensions
...
Also moved debugging macro's from types-internal.h ro util-internal.h
2014-11-07 11:38:02 +01:00
Willem Toorop
114e459a43
Make things work on FreeBSD again
2014-10-31 14:17:30 +01:00
Willem Toorop
905b4bcc8c
Fix compiling with libevent1
2014-10-30 15:42:08 +01:00
Willem Toorop
4ac063f5b8
libevent1 fix
2014-10-27 15:45:27 +01:00
Willem Toorop
e9548fc5fb
Fix for TCP stub mode
...
Stupid mistake.
One can not clear an freshly "cleared" initialized event!
2014-10-19 22:51:42 +02:00
Neel Goyal
75d163427c
Fix some warnings on OSX
2014-10-17 17:41:43 -04:00
Willem Toorop
893605041d
libuv extension now working too!
2014-10-15 10:47:36 +02:00
Willem Toorop
a1be0c985d
Miscelaneous fixes that came out of the unit tests
...
TODO: libuv still has issues. Do we really need a close callback?
2014-10-15 01:13:39 +02:00
Willem Toorop
c9de395b44
Fix correctly tracking of outstanding events
2014-10-13 15:35:41 +02:00
Willem Toorop
f61d2ae262
write and run methods for eventloop extension
2014-10-10 14:48:52 +02:00
Willem Toorop
2172a7280a
libuv according to new scheme
2014-10-10 11:14:01 +02:00
Willem Toorop
b3b634a2f5
libevent & libev following new extension scheme
2014-10-09 01:18:53 +02:00
Willem Toorop
1f203485e2
eventloop separate from context & libmini_event
2014-10-08 15:42:33 +02:00
Willem Toorop
58b3e553de
Remove redundant param from schedule_timeout funcs
2014-10-06 20:23:50 +02:00
Willem Toorop
648153f98c
Timeouts are 64 bits
2014-10-06 16:10:09 +02:00
Glen Wiley
e284a702a8
removed define for u_char since it breaks some builds
2014-06-02 09:48:30 -04:00
Willem Toorop
45ac1bc7ae
Make libev work on Fedora too
2014-05-26 15:56:30 +02:00
Willem Toorop
76c6105824
Only export symbols that are really there
2014-05-26 15:19:02 +02:00
Willem Toorop
57b51a5dcc
prefer includes local to builddir
2014-05-19 15:50:34 +02:00
Neel Goyal
3f8e8ac098
Possible fix for #21 and tests
2014-03-05 22:13:37 -05:00
Saúl Ibarra Corretgé
785ebf4ed6
Handle possible allocation failure
2014-03-05 14:27:15 +01:00
Saúl Ibarra Corretgé
edd2c81bc5
Remove uneeded check
...
libuv will always pass the handle to the close callback
2014-03-05 14:27:15 +01:00
Saúl Ibarra Corretgé
d51840efd7
Removed uv_data->polling field
...
It's not necessary as uv_is_active can be used to check if a handle
is started or not.
2014-03-05 14:27:15 +01:00
Neel Goyal
108f72bc36
Fix for issue #18 - allow destroy in callback
2014-03-04 17:00:18 -05:00
Neel Goyal
2b19661e77
Define u_char if including event.h for libevent1
2014-02-25 14:21:44 -05:00
Willem Toorop
d2c890ab6a
Fill in <organization> place holder.
...
s/the name of the <organization>/the names of the copyright holders/g
2014-02-25 14:23:19 +01:00
Willem Toorop
8d77505219
s/Versign/Verisign/g in all files
2014-02-25 14:12:33 +01:00
Neel Goyal
deade2b8bb
Update extensions to add/remove persistent event based on request count
2014-02-21 18:42:04 -05:00
Neel Goyal
80703de636
Begin refactor out extensions into libs.
2014-02-21 12:23:20 -05:00
Neel Goyal
59dada64ce
Fix warning
2014-02-06 00:33:10 -05:00
Neel Goyal
e0055b9cd5
Remove printfs.
2014-02-06 00:29:34 -05:00
Neel Goyal
3af362e2fd
Fix some major bugs in extensions when clearing timeout. Add libev
2014-02-06 00:24:26 -05:00
Neel Goyal
d8f8eeca52
Fix signature on clear timeout for extensions
2014-02-06 00:10:35 -05:00
Neel Goyal
48aacf6c96
Fix include in libuv.c
2014-02-05 21:46:21 -05:00
Neel Goyal
562e2dd6df
Add libuv support. Change event loop handling in tests
2014-02-05 00:01:55 -05:00
Neel Goyal
1f847b0d96
Add timeout support
2014-01-31 14:43:02 -05:00
Neel Goyal
13b9e74ff5
Update extensions
2014-01-22 19:55:04 -05:00