added the ability to limit the number of half-open tcp connections

This commit is contained in:
Arvid Norberg
2005-11-02 16:28:39 +00:00
parent 3f36dd0395
commit bcbe165aee
15 changed files with 351 additions and 154 deletions

View File

@@ -1744,7 +1744,9 @@ It contains the following fields::
remote_interested = 0x4,
remote_choked = 0x8,
supports_extensions = 0x10,
local_connection = 0x20
local_connection = 0x20,
connecting = 0x40,
queued = 0x80
};
unsigned int flags;
address ip;
@@ -1792,6 +1794,13 @@ any combination of the enums above. The following table describes each flag:
| | peer connection was opened by this peer connecting to |
| | us. |
+-------------------------+-------------------------------------------------------+
| ``connecting`` | The connection is in a half-open state (i.e. it is |
| | being connected). |
+-------------------------+-------------------------------------------------------+
| ``queued`` | The connection is currently queued for a connection |
| | attempt. This may happen if there is a limit set on |
| | the number of half-open TCP connections. |
+-------------------------+-------------------------------------------------------+
__ extension_protocol.html