Restconf native+http/1 + tls
Added command-line timeout -t <sec> to restconf Example: Added programmable timeout to backend example Test: updated for fcgi and native using internal timeouts
This commit is contained in:
parent
2b2a2ec1ad
commit
62a4b5feff
17 changed files with 577 additions and 318 deletions
|
|
@ -78,7 +78,7 @@
|
|||
* XXX may be unecessary (or body start or something)
|
||||
*/
|
||||
FCGX_Request *
|
||||
restconf_reply_body_start(void *req0)
|
||||
restconf_reply_body_start(void *req0)
|
||||
{
|
||||
FCGX_Request *req = (FCGX_Request *)req0;
|
||||
|
||||
|
|
@ -102,10 +102,10 @@ restconf_reply_header(void *req0,
|
|||
...)
|
||||
{
|
||||
FCGX_Request *req = (FCGX_Request *)req0;
|
||||
int retval = -1;
|
||||
size_t vlen;
|
||||
char *value = NULL;
|
||||
va_list ap;
|
||||
int retval = -1;
|
||||
size_t vlen;
|
||||
char *value = NULL;
|
||||
va_list ap;
|
||||
|
||||
if (req == NULL || name == NULL || vfmt == NULL){
|
||||
clixon_err(OE_CFG, EINVAL, "req, name or value is NULL");
|
||||
|
|
@ -151,11 +151,11 @@ restconf_reply_body_add(void *req0,
|
|||
...)
|
||||
{
|
||||
FCGX_Request *req = (FCGX_Request *)req0;
|
||||
int retval = -1;
|
||||
size_t sz;
|
||||
size_t blen;
|
||||
char *body = NULL;
|
||||
va_list ap;
|
||||
int retval = -1;
|
||||
size_t sz;
|
||||
size_t blen;
|
||||
char *body = NULL;
|
||||
va_list ap;
|
||||
|
||||
if (req == NULL || bfmt == NULL){
|
||||
clixon_err(OE_CFG, EINVAL, "req or body is NULL");
|
||||
|
|
@ -208,7 +208,7 @@ restconf_reply_send(void *req0,
|
|||
{
|
||||
FCGX_Request *req = (FCGX_Request *)req0;
|
||||
int retval = -1;
|
||||
const char *reason_phrase;
|
||||
const char *reason_phrase;
|
||||
|
||||
FCGX_SetExitStatus(code, req->out);
|
||||
if ((reason_phrase = restconf_code2reason(code)) == NULL)
|
||||
|
|
@ -241,8 +241,8 @@ cbuf *
|
|||
restconf_get_indata(void *req0)
|
||||
{
|
||||
FCGX_Request *req = (FCGX_Request *)req0;
|
||||
int c;
|
||||
cbuf *cb = NULL;
|
||||
int c;
|
||||
cbuf *cb = NULL;
|
||||
|
||||
if ((cb = cbuf_new()) == NULL)
|
||||
return NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue