added the ability to limit the number of half-open tcp connections
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user