File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -815,5 +815,20 @@ void ggipc_close_subscription(GgIpcSubscriptionHandle handle) {
815815 return ;
816816 }
817817
818+ int32_t stream_id = stream_state_id [index ];
819+ EventStreamHeader headers [] = {
820+ { GGL_STR (":message-type" ),
821+ { EVENTSTREAM_INT32 , .int32 = EVENTSTREAM_APPLICATION_MESSAGE } },
822+ { GGL_STR (":message-flags" ),
823+ { EVENTSTREAM_INT32 , .int32 = EVENTSTREAM_TERMINATE_STREAM } },
824+ { GGL_STR (":stream-id" ), { EVENTSTREAM_INT32 , .int32 = stream_id } },
825+ };
826+ size_t headers_len = sizeof (headers ) / sizeof (headers [0 ]);
827+
828+ GGL_LOGD (
829+ "Sending subscription termination for stream id %" PRIi32 "." , stream_id
830+ );
831+ (void ) ipc_send_packet (ipc_conn_fd , headers , headers_len , GGL_NULL_READER );
832+
818833 clear_stream_index (index );
819834}
You can’t perform that action at this time.
0 commit comments