Commit Graph

190 Commits

Author SHA1 Message Date
Nils O. Selåsdal 13567e3cd9 Add macro for stringifying __FILE__:__LINE__ 2013-10-16 01:37:20 +02:00
Nils O. Selåsdal 934088ca4a Remove ticket_cost member as it is no longer needed 2013-10-15 22:31:57 +02:00
Nils O. Selåsdal 0a36c669c6 More ratelimit optimizations 2013-10-15 21:35:10 +02:00
Nils O. Selåsdal 28514c0a57 More limits clarification 2013-10-15 15:44:12 +02:00
Nils O. Selåsdal f4e7ad0fe6 Note the limits on tickets and period 2013-10-15 15:23:32 +02:00
Nils O. Selåsdal 763032fb04 Greatly improve the rate limit algorithm, so it is correct for a low
ticket to period ratio.
2013-10-15 15:03:27 +02:00
Nils O. Selåsdal 41bb24bb61 Delete the silly bitvec _s functions 2013-10-14 19:01:56 +02:00
Nils O. Selåsdal 6058be1c07 Fix UC_STATIC_ASSERT 2013-10-14 18:03:17 +02:00
Nils O. Selåsdal 48678a9858 Use consisten header guard, prefixed with UC_ 2013-10-13 17:37:28 +02:00
Nils O. Selåsdal 3d93ec6091 Bump scaling to 1000.
Note the error in integer arithmetic
2013-10-12 01:28:20 +02:00
Nils O. Selåsdal 8a76210661 Comment rate_limit.h 2013-10-11 23:54:37 +02:00
Nils O. Selåsdal 06083a054e Add rate limit API 2013-10-09 22:55:29 +02:00
Nils O. Selåsdal 08a50d8cfe fix UC_ASSERT writing to wrong fd, and unterminated if
log more in UC_NOTREACHED
2013-10-08 17:39:44 +02:00
Nils O. Selåsdal 425062ad18 Add needed include files 2013-10-08 17:34:58 +02:00
Nils O. Selåsdal bb5e21d29b add static strvec initializer macradd static strvec initializer macroo 2013-10-05 20:36:11 +02:00
Nils O. Selåsdal d9517ad868 Make the thread queue walk function take a cookie to the callback
and implement a _clear() function to clear out the queue
2013-10-03 22:04:33 +02:00
Nils O. Selåsdal 4310414b49 More comments in string.h 2013-10-02 22:17:15 +02:00
Nils O. Selåsdal dd517a5d85 Prefix CONTAINER_OF with UC_ 2013-09-28 23:45:51 +02:00
Nils O. Selåsdal ff0fd32ae1 Fix comment 2013-09-26 22:22:19 +02:00
Nils O. Selåsdal 9988d8f4c0 Add uc_str_append_all function 2013-09-15 00:01:19 +02:00
Nils O. Selåsdal 03d700595b Improve docus 2013-09-15 00:01:08 +02:00
Nils O. Selåsdal 9e919c1cde Add mbuf documentation. have mbuf_free handle NULL pointer 2013-09-13 21:42:32 +02:00
Nils O. Selåsdal 216dfe879d Added string vector(argv like) functions 2013-09-04 18:10:26 +02:00
Nils O. Selåsdal 110c843d9d Add supervisor 2013-08-28 23:25:02 +02:00
Nils O. Selåsdal 13108f1f48 Add doxygen groups 2013-07-31 03:37:50 +02:00
Nils O. Selåsdal 679b4b12e5 Fix UC_ATOMIC_ADD 2013-07-19 20:53:36 +02:00
Nils O. Selåsdal 7a968ee77a Nuke the base64 code. It was wrong 2013-07-12 21:13:22 +02:00
Nils O. Selåsdal b475fae56b Add uc_set_tcp_keepalive_cfg too set keepalive options 2013-07-08 22:15:56 +02:00
Nils O. Selåsdal e1f16b3603 Correct spelling mistakes in comments 2013-07-07 22:28:41 +02:00
Nils O. Selåsdal 2bd5f9f5b9 Add DBuf , buffer API 2013-07-07 22:10:41 +02:00
Nils O. Selåsdal 65c32810cb Add test for uc_mbuf-copy_data 2013-07-02 21:22:38 +02:00
Nils O. Selåsdal d8376338fa Improve doxygen comments 2013-07-02 21:21:27 +02:00
Nils O. Selåsdal bf9802e565 First iteration of mbuf, message buffer api 2013-06-30 21:42:02 +02:00
Nils O. Selåsdal 1e0e840ee5 Get rid of aligment warning on CONTAINER_OF in clang 2013-06-27 20:58:43 +02:00
Nils O. Selåsdal 84153e90db Make UC_LL_NONE work 2013-06-20 19:55:09 +02:00
Nils O. Selåsdal 012a5b1377 move iomux_impl.h to src/ dir, it's an implementation detail 2013-06-19 18:51:12 +02:00
Nils O. Selåsdal b4f9ecafe2 add C++ guards 2013-06-19 18:48:45 +02:00
Nils O. Selåsdal 6268e6ac8e update comments 2013-06-19 18:48:27 +02:00
Nils O. Selåsdal e03b9a9f80 Update docs 2013-06-19 18:47:45 +02:00
Nils O. Selåsdal b219136d6e fix UC_ATOMIC_DEC 2013-06-17 20:32:15 +02:00
Nils O. Selåsdal 7d4f1f16c2 Add header for simple atomic operations 2013-06-17 20:28:15 +02:00
Nils O. Selåsdal 496818b7b5 Fix UC_DEBUGFR in debug mode 2013-06-13 01:10:23 +02:00
Nils O. Selåsdal 74b59a3a38 Implement setting log mask string on a destination.
Improve logging docs
2013-06-12 21:50:59 +02:00
Nils O. Selåsdal 150edaeada Rework RBTree to use RBNode in the compare function 2013-06-10 23:00:24 +02:00
Nils O. Selåsdal eba7590e6c Add CONST_CONTAINER_OF for const pointers 2013-06-10 22:55:30 +02:00
Nils O. Selåsdal f8116643af Add uc_log_destination_set_log_location, fix signed/unsigned use 2013-06-05 21:09:35 +02:00
Nils O. Selåsdal 032e50e1cd Remove setting log level for a module, implement
setting log level for a destination
2013-06-01 23:45:14 +02:00
Nils O. Selåsdal 5a427007d6 Add fd_utils 2013-05-30 22:38:56 +02:00
Nils O. Selåsdal 1e34c11265 Name uc_timers_XXX consistently 2013-05-28 01:05:38 +02:00
Nils O. Selåsdal 2eaf50d19b Add note about O(n) of uc_timers_count() 2013-05-28 00:10:02 +02:00