Skip to content

Commit

Permalink
[ADDED] JetStream: natsSubscription_FetchRequest
Browse files Browse the repository at this point in the history
Similar to natsSubscription_Fetch but allows user to fully configure
the fetch request.

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
  • Loading branch information
kozlovic committed Sep 19, 2022
1 parent 5b8f3aa commit 2cd5ee1
Show file tree
Hide file tree
Showing 9 changed files with 483 additions and 110 deletions.
4 changes: 3 additions & 1 deletion src/conn.c
Original file line number Diff line number Diff line change
Expand Up @@ -2663,7 +2663,9 @@ natsConn_processMsg(natsConnection *nc, char *buf, int bufLen)
return NATS_OK;
}

if ((jsi = sub->jsi) != NULL)
jsi = sub->jsi;
// For JS subscriptions (but not pull ones), handle hearbeat and flow control here.
if (jsi && !jsi->pull)
{
ctrlMsg = natsMsg_isJSCtrl(msg, &jct);
if (ctrlMsg && jct == jsCtrlHeartbeat)
Expand Down
Loading

0 comments on commit 2cd5ee1

Please sign in to comment.