• Eric Roman's avatar
    Add a per-process limit on open UDP sockets. · 5a841929
    Eric Roman authored
    This adds a default limit of 6000 on the open UDP sockets throughout the entire process, configurable with the "LimitOpenUDPSockets" feature.
    
    An "open UDP socket" specifically means a net::UDPSocket which successfully called Open(), and has not yet called Close().
    
    Once the limit has been reached, opening UDP socket will fail with ERR_INSUFFICIENT_RESOURCES.
    
    In Chrome Browser, UDP sockets are brokered through a single process (that hosting the Network Service), so this is functionally a browser-wide limit too.
    
    Bug: 1083278
    
    Change-Id: Ib95ab14b7ccf5e15410b9df9537c66c858de2d7d
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2350395Reviewed-by: default avatarDavid Schinazi <dschinazi@chromium.org>
    Commit-Queue: Eric Roman <eroman@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#797523}
    5a841929
udp_socket_win.h 18.9 KB