You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by jpeach <gi...@git.apache.org> on 2016/10/05 20:00:37 UTC

[GitHub] trafficserver pull request #1063: TS-4909: Throttling based on resident memo...

Github user jpeach commented on a diff in the pull request:

    https://github.com/apache/trafficserver/pull/1063#discussion_r82056583
  
    --- Diff: iocore/net/UnixNetAccept.cc ---
    @@ -280,6 +234,14 @@ NetAccept::do_blocking_accept(EThread *t)
           return -1;
         }
     
    +    // Throttle accepts
    +    if (!backdoor && (check_net_throttle(ACCEPT, now) || net_memory_throttle)) {
    +      Debug("net_accept", "Too many connections or too much memory used, throttling");
    +      check_throttle_warning();
    +      con.close();
    --- End diff --
    
    Add a metric for this case?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---