make sure the very first fragment triggers an rx_callback
On the first session server, the first payload packet gets queued but the Rx callback will only be invoked when the second packet is received. By initializing enqueue_epoch in the session, we can make sure that the RX callback will be invoked for the first packet as well. Change-Id: I60e2cf8d4d2ca71d461ca003d459c8e6e6956a4d Signed-off-by: Andreas Schultz <aschultz@warp10.net>
This commit is contained in:

committed by
Florin Coras

parent
82d8ec2571
commit
c1214bd1b6
@@ -147,6 +147,7 @@ session_alloc_for_connection (transport_connection_t * tc)
|
||||
s = session_alloc (thread_index);
|
||||
s->session_type = session_type_from_proto_and_ip (tc->proto, tc->is_ip4);
|
||||
s->session_state = SESSION_STATE_CONNECTING;
|
||||
s->enqueue_epoch = ~0;
|
||||
|
||||
/* Attach transport to session and vice versa */
|
||||
s->connection_index = tc->c_index;
|
||||
|
Reference in New Issue
Block a user