Aleric Inglewood
929badb110
Let statemachine honor approvements.
...
The inventory bulk fetch is not thread-safe, so the it doesn't start
right away, causing the approvement not to be honored upon return from
post_approved (formerly post_nb).
This patch renames wantsMoreHTTPReqestsFor to approveHTTPRequestFor,
and has it return NULL or a AIPerService::Approvement object.
The latter is now passed to the CurlEasyHandle object instead of just a
boolean mQueueIfTooMuchBandwidthUsage, and then the Approvement is
honored by the state machine right after the request is actually added
to the command queue.
This should avoid a flood of inventory requests in the case
approveHTTPRequestFor is called multiple times before the main thread
adds the requests to the command queue. I don't think that actually ever
happens, but I added debug code (to find some problem) that is so damn
strictly checking everything that I need to be this precise in order to
do that testing.
2013-05-12 04:19:44 +02:00
..
2012-04-29 00:25:40 -04:00
2013-04-24 22:04:21 +02:00
2013-05-07 02:01:31 +02:00
2013-05-12 04:19:44 +02:00
2013-04-26 19:20:10 +02:00
2013-03-06 03:34:05 +01:00
2013-03-06 03:26:43 +01:00
2013-05-12 04:19:44 +02:00
2013-05-12 04:19:44 +02:00
2013-05-12 04:19:44 +02:00
2013-05-12 04:19:44 +02:00
2013-04-26 19:20:10 +02:00
2013-01-08 17:50:09 +01:00
2012-12-24 19:58:54 +01:00
2013-04-24 22:04:21 +02:00
2013-04-24 22:04:21 +02:00
2013-03-27 22:37:21 +01:00
2013-03-19 23:59:15 +01:00
2013-04-24 22:04:21 +02:00
2013-02-12 23:44:55 +01:00
2012-12-24 02:54:36 +01:00
2012-08-13 19:30:35 +02:00
2012-03-06 07:31:15 +01:00
2012-03-06 09:11:36 +01:00
2012-03-06 09:11:36 +01:00
2012-06-30 21:14:18 +02:00
2012-03-06 07:31:15 +01:00
2013-01-11 04:15:55 +01:00
2012-12-10 11:24:25 -05:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2013-03-04 12:02:01 -05:00
2012-10-26 04:13:29 +02:00
2013-03-04 12:02:01 -05:00
2012-08-20 21:18:19 +02:00
2013-03-04 12:02:01 -05:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2013-02-12 20:47:55 -06:00
2013-02-12 20:47:55 -06:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-08-09 10:56:29 -04:00
2012-03-06 07:31:15 +01:00
2012-11-03 14:13:13 +01:00
2012-03-06 07:31:15 +01:00
2012-07-21 03:01:42 -04:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-09-20 04:49:43 +02:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2013-05-12 04:19:44 +02:00
2013-05-12 04:19:44 +02:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-10-31 05:01:24 +01:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2013-03-04 12:02:01 -05:00
2012-03-06 07:31:15 +01:00
2012-07-15 22:46:38 +02:00
2012-07-16 22:35:04 +02:00
2013-03-04 12:02:01 -05:00
2012-07-22 11:26:36 +02:00
2012-07-22 11:26:36 +02:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-07-22 11:26:36 +02:00
2012-07-22 11:26:36 +02:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-11-04 03:30:49 +01:00
2012-11-04 03:30:49 +01:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2013-02-12 20:47:55 -06:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-07-22 11:26:36 +02:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-11-03 14:13:13 +01:00
2012-08-09 22:50:05 -05:00
2012-09-20 16:50:03 +02:00
2012-03-06 07:31:15 +01:00
2012-08-05 18:51:21 +02:00
2012-06-28 04:08:25 -04:00
2013-03-04 12:02:01 -05:00
2012-07-22 11:26:36 +02:00
2013-02-11 01:14:09 -05:00
2013-02-11 19:12:17 -05:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-10-31 23:11:42 +01:00
2013-01-11 04:15:55 +01:00
2012-07-22 11:26:36 +02:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-11-03 14:13:13 +01:00
2012-11-03 14:13:13 +01:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2013-05-12 04:19:44 +02:00
2013-05-12 04:19:44 +02:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-07-20 08:13:07 -04:00
2013-02-19 01:50:46 -06:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2013-01-13 02:37:12 -06:00
2013-01-13 02:37:12 -06:00
2012-03-06 07:31:15 +01:00
2013-04-24 22:04:21 +02:00
2012-11-03 14:13:13 +01:00
2012-04-28 21:29:52 -04:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00
2012-03-06 07:31:15 +01:00