Commit b454a6b1 authored by Qingsi Wang's avatar Qingsi Wang Committed by Commit Bot

Increase the buffer size of mDNS socket handlers.

The current buffer size often induces ERR_MSG_TOO_BIG and increases the
chance that we miss expected messages.

Bug: 993770
Change-Id: I067782f0aa287627a6948b0286771d3fe54aef18
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1757395Reviewed-by: default avatarEric Orth <ericorth@chromium.org>
Commit-Queue: Qingsi Wang <qingsi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#687687}
parent 8a1224af
......@@ -409,7 +409,7 @@ class MdnsResponderManager::SocketHandler {
socket_(std::move(socket)),
responder_manager_(responder_manager),
io_buffer_(base::MakeRefCounted<net::IOBufferWithSize>(
net::dns_protocol::kMaxUDPSize + 1)) {}
net::dns_protocol::kMaxMulticastSize + 1)) {}
~SocketHandler() = default;
int Start() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment