-
Hi, Line 723 in 27d9a8d Can I somehow force sending the data immediately (without modifying |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
As far as I know Picoquic is waiting in Lines 615 to 628 in 27d9a8d You can wake up the network thread with Line 1262 in 27d9a8d Another option is set a custom Line 828 in 27d9a8d |
Beta Was this translation helpful? Give feedback.
-
The root cause of your 10ms delay is because you are running single thread. In the single thread model, the network loop will call the application just before going to call select, and then after receiving or sending a packet. As @hfstco explains, the application can override the default timer by setting a shorter timer in response to the |
Beta Was this translation helpful? Give feedback.
If your application wants real time behavior, it should use the "just in time" API, as explained in
doc/send_receive_data.md
, look for "sending datagrams just in time":picoquic_mark_datagram_ready
.picoquic_callback_prepare_datagram
, prepare the buffer as explained in the doc. In the call topicoquic_provide_datagram_buffer_ex
, set theis_still_active
flag to 1 if there are more datagrams in the queue, to 0 if not.If your implementation is multi-threaded (it probably should be), wake up the background thread using
picoquic_wake_up…