Skip to content

Commit

Permalink
Merge pull request #350 from ietf-tapswg/tfp/connection-limits
Browse files Browse the repository at this point in the history
Allow setting new connection limits for inbound connections
  • Loading branch information
tfpauly committed Aug 30, 2019
2 parents 6b967cb + 3d5fc4d commit 7ce8fee
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions draft-ietf-taps-interface.md
Original file line number Diff line number Diff line change
Expand Up @@ -1114,9 +1114,21 @@ transport-layer connection to this Listener (for Connection-oriented
transport protocols), or when the first Message has been received from the
Remote Endpoint (for Connectionless protocols), causing a new Connection to be
created. The resulting Connection is contained within the ConnectionReceived
event, and is ready to use as soon as it is passed to the application via the
Event, and is ready to use as soon as it is passed to the application via the
event.

~~~
Listener.SetNewConnectionLimit(value)
~~~

If the caller wants to rate-limit the number of inbound Connections that will be delivered,
it can set a cap using SetNewConnectionLimit(). This mechanism allows a server to
protect itself from being drained of resources. Each time a new Connection is delivered
by the ConnectionReceived Event, the value is automatically decremented. Once the
value reaches zero, no further Connections will be delivered until the caller sets the
limit to a higher value. By default, this value is Infinite. The caller is also able to reset
the value to Infinite at any point.

~~~
Listener -> ListenError<>
~~~
Expand All @@ -1129,7 +1141,7 @@ be resolved, or when the application is prohibited from listening by policy.
Listener -> Stopped<>
~~~

A Stopped event occurs after the Listener has stopped listening.
A Stopped Event occurs after the Listener has stopped listening.

## Peer-to-Peer Establishment: Rendezvous {#rendezvous}

Expand Down

0 comments on commit 7ce8fee

Please sign in to comment.