Files
SingularityViewer/indra
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
..
2013-04-23 21:37:22 +02:00
2012-07-04 10:25:04 +00:00
2013-04-23 03:16:31 +02:00
2013-03-05 12:24:51 -05:00
2012-12-09 02:10:16 +01:00
2013-04-12 20:55:54 +02:00
2013-03-04 03:31:24 -05:00
2013-03-05 12:24:51 -05:00
2013-03-24 23:20:40 -05:00
2013-03-04 12:02:01 -05:00
2013-03-05 12:24:51 -05:00