suspend if /keys is not ready
This commit is contained in:
parent
13deb5c4d2
commit
5f95f26a25
@ -2125,15 +2125,9 @@ TEH_keys_get_handler (struct TEH_RequestContext *rc,
|
|||||||
}
|
}
|
||||||
if (NULL == krd)
|
if (NULL == krd)
|
||||||
{
|
{
|
||||||
/* Maybe client picked time stamp too far in the future? In that case,
|
/* Likely keys not ready *yet*.
|
||||||
"INTERNAL_SERVER_ERROR" might be misleading, could be more like a
|
Wait until they are. */
|
||||||
NOT_FOUND situation. But, OTOH, for 'sane' clients it is more likely
|
return suspend_request (rc->connection);
|
||||||
to be our fault, so let's speculatively assume we are to blame ;-) *///
|
|
||||||
GNUNET_break (0);
|
|
||||||
return TALER_MHD_reply_with_error (rc->connection,
|
|
||||||
MHD_HTTP_INTERNAL_SERVER_ERROR,
|
|
||||||
TALER_EC_EXCHANGE_GENERIC_KEYS_MISSING,
|
|
||||||
"no key data for given timestamp");
|
|
||||||
}
|
}
|
||||||
return MHD_queue_response (rc->connection,
|
return MHD_queue_response (rc->connection,
|
||||||
MHD_HTTP_OK,
|
MHD_HTTP_OK,
|
||||||
|
Loading…
Reference in New Issue
Block a user