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
Previously, the condition in on_stream_io_impl() never hit, as the
read packet is always taken from the stream in the few lines above.
Instead of the dns_stream_complete() under the condition, the stream
is unref()ed in the on_packet callback for LLMNR stream, unlike the
other on_packet callbacks.
That's quite tricky. Also, potentially, the stream may still have
queued packets to write.
This fix the condition, and drops the unref() in the on_packet callback.
C.f. systemd#22274 (comment).
Closessystemd#22266.
Previously, the condition in on_stream_io_impl() never hit, as the
read packet is always taken from the stream in the few lines above.
Instead of the dns_stream_complete() under the condition, the stream
is unref()ed in the on_packet callback for LLMNR stream, unlike the
other on_packet callbacks.
That's quite tricky. Also, potentially, the stream may still have
queued packets to write.
This fix the condition, and drops the unref() in the on_packet callback.
C.f. systemd#22274 (comment).
Closessystemd#22266.
(cherry picked from commit a5e2a48)
LLMNR stream does not have
complete
callback, that means the stream is unref()ed whendns_stream_complete()
is called.However, unlike the other
on_packet
callbacks,on_llmnr_stream_packet()
unref() the stream.In
on_stream_io()
,on_packet
is called and thendns_stream_complete()
is called. Does this mean the stream is doubly unref()ed?Also, I cannot understand the comment added by 31f2a5e.
The text was updated successfully, but these errors were encountered: