You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So if packets arrive very fast (or the processing of each one takes a long time), this could block for an arbitrary amount of time. This would be fixed by setting a maximum of packets to read (libuv sets 32) and deferring the next read with a setTimeout if needed.
The text was updated successfully, but these errors were encountered:
@mildsunrise
Hello, have you been able to get around this issue?
I'm running into this consistently when using a specific PCAP file and creating an offline session.
I see... I only reported this issue because I knew it could theoretically happen.
I'd say this isn't very hard to fix, but unfortunately I have no time to dedicate to this project right now :( Sorry
If I'm not mistaken, this module could starve the loop, because it enters an infinite loop until there's no packets:
node_pcap/pcap_session.cc
Lines 120 to 126 in fb9dfc9
So if packets arrive very fast (or the processing of each one takes a long time), this could block for an arbitrary amount of time. This would be fixed by setting a maximum of packets to read (libuv sets 32) and deferring the next read with a
setTimeout
if needed.The text was updated successfully, but these errors were encountered: