session: session_cb_vft add proxy_write_early_data 29/43529/1
authorMatus Fabian <[email protected]>
Thu, 7 Aug 2025 13:52:35 +0000 (09:52 -0400)
committerMatus Fabian <[email protected]>
Thu, 7 Aug 2025 14:01:11 +0000 (10:01 -0400)
Allow zc proxy app write data to fifo before UDP transport on accepted
connection.

Type: feature

Change-Id: I93657de68d344f5d2d327dd4e36cc331043fdf98
Signed-off-by: Matus Fabian <[email protected]>
src/vnet/session/application_interface.h
src/vnet/session/application_worker.c

index fe83265..f58b0fa 100644 (file)
@@ -76,6 +76,9 @@ typedef struct session_cb_vft_
   /** Custom fifo allocation for proxy */
   int (*proxy_alloc_session_fifos) (session_t *s);
 
+  /** Allow proxy to write early data */
+  int (*proxy_write_early_data) (session_t *s);
+
   /** Collect and export session logs */
   int (*app_evt_callback) (session_t *s);
 
index c919cc1..8b389be 100644 (file)
@@ -409,6 +409,9 @@ app_worker_init_accepted (session_t * s)
   if (app_worker_alloc_session_fifos (sm, s))
     return -1;
 
+  if (application_is_builtin_proxy (app))
+    return app->cb_fns.proxy_write_early_data (s);
+
   return 0;
 }