[
https://issues.apache.org/jira/browse/DISPATCH-987?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16463141#comment-16463141
]
Chuck Rolke commented on DISPATCH-987:
--------------------------------------
The problem manifestation when running the client is that the client fails with:
{{proton:io: Cannot assign requested address - on connect 127.0.0.1:5672}}
On my laptop a single client fails after 28,000 or so open/closes. I'm assuming
that the client has run the system out of usable sockets. There are thousands
of sockets in TIMED_WAIT state. The router seems unaffected. Pausing the client
for a minute or so allows it to proceed beyond the 28,000 threshold.
Without policy enabled the same client program can run for millions of
open/closes.
> With policy enabled connections are not closed properly
> -------------------------------------------------------
>
> Key: DISPATCH-987
> URL: https://issues.apache.org/jira/browse/DISPATCH-987
> Project: Qpid Dispatch
> Issue Type: Bug
> Components: Container, Policy Engine
> Affects Versions: 1.0.1, 1.1.0
> Reporter: Chuck Rolke
> Priority: Major
> Attachments: management-access.json, vhost.conf
>
>
> Running a connection torture test that repeatedly opens a connection as far
> as sending an AMQP Open performative and then closing the connection cleanly
> results in the router only half-closing the TCP connection.
> A network trace with no policy. Note that the router acks the client FIN at
> the end.
> ||No.||Time || Protocol ||Info (without vhost policy)||
> |43 |2.541095986 |TCP |34294 → 5672 [SYN]|
> |44 |2.541136228 |TCP |5672 → 34294 [SYN, ACK]|
> |45 |2.541160415 |TCP |34294 → 5672 [ACK] |
> |46 |2.541380992 |AMQP |Protocol-Header 1-0-0 open |
> |47 |2.541395296 |TCP |5672 → 34294 [ACK] |
> |48 |2.541730395 |AMQP |Protocol-Header 1-0-0 open |
> |49 |2.541745841 |TCP |34294 → 5672 [ACK] |
> |50 |2.541872178 |AMQP |close |
> |51 |2.541929756 |AMQP |close |
> |52 |2.541978491 |TCP |5672 → 34294 [FIN, ACK] |
> |53 |2.541982519 |TCP |34294 → 5672 [FIN, ACK] |
> |54 |2.541990280 |TCP |5672 → 34294 [ACK] |
> |55 |2.541996003 |TCP |34294 → 5672 [ACK] |
> A network trace with policy. Note that the router does not ACK the client FIN
> at the end.
> ||No ||Time || Protocol ||Info (with vhost policy)||
> | 7 |1.466184854 |TCP |34334 → 5672 [SYN]|
> | 8 |1.466204022 |TCP |5672 → 34334 [SYN, ACK]|
> | 9 |1.466214404 |TCP |34334 → 5672 [ACK]|
> |10 |1.466311860 |AMQP |Protocol-Header 1-0-0 open |
> |11 |1.466318152 |TCP |5672 → 34334 [ACK]|
> |12 |1.466973480 |AMQP |Protocol-Header 1-0-0 open |
> |13 |1.466986519 |TCP |34334 → 5672 [ACK]|
> |14 |1.467125609 |AMQP |close |
> |15 |1.467242524 |AMQP |close |
> |16 |1.467333770 |TCP |34334 → 5672 [FIN, ACK]|
> |17 |1.467356742 |TCP |5672 → 34334 [FIN, ACK]|
> |18 |1.467363647 |TCP |34334 → 5672 [ACK]|
> A client program for proton cpp examples is available here:
> [https://github.com/ChugR/qpid-proton/blob/PROTON-1842/cpp/examples/amqp-open-close.cpp]
> Config for the router and a permissive policy are attached.
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]