- Link utils statically if LINKAGE=static

- Fix event exit bug (set to new counter, dont increment)
- Changed default CI to be restconf=native instead of fcgi1~
- Tests:
  - Change to same wait backend and restconf commands
  - Change default restconf protocol from http to https
This commit is contained in:
Olof hagsand 2021-06-18 12:18:33 +02:00
parent 4b83f4198c
commit 9edf380f6a
70 changed files with 264 additions and 238 deletions

View file

@ -858,7 +858,7 @@ restconf_connection(int s,
* frames instead of just postponing nrof events?
*/
if (clixon_exit_get() == 1){
clixon_exit_set(4);
clixon_exit_set(3);
}
}
#endif
@ -868,7 +868,9 @@ restconf_connection(int s,
case HTTP_2:
if (http2_recv(rc, (unsigned char *)buf, n) < 0)
goto done;
// notused sd = restconf_stream_find(rc, 0); /* default stream */
//notused sd = restconf_stream_find(rc, 0); /* default stream */
/* There may be more data frames */
readmore++;
break;
#endif /* HAVE_LIBNGHTTP2 */
default:

View file

@ -543,6 +543,11 @@ on_invalid_frame_recv_callback(nghttp2_session *session,
}
/*! A chunk of data in DATA frame is received
*
* ``(flags & NGHTTP2_FLAG_END_STREAM) != 0`` does not
* necessarily mean this chunk of data is the last one in the stream.
* You should use :type:`nghttp2_on_frame_recv_callback` to know all
* data frames are received.
*/
static int
on_data_chunk_recv_callback(nghttp2_session *session,
@ -835,7 +840,7 @@ error_callback2(nghttp2_session *session,
* XXX see session_recv
*/
int
http2_recv(restconf_conn *rc,
http2_recv(restconf_conn *rc,
const unsigned char *buf,
size_t n)
{