[
https://issues.apache.org/jira/browse/SYNAPSE-173?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Evanthika Amarasiri closed SYNAPSE-173.
---------------------------------------
The requests are handled properly now. Tested on 1.2_QA_B1. The issue will be
closed
> When sending requests through JMeter, the number of requests that passes
> exceeds the maximum number of requests allowed
> -----------------------------------------------------------------------------------------------------------------------
>
> Key: SYNAPSE-173
> URL: https://issues.apache.org/jira/browse/SYNAPSE-173
> Project: Synapse
> Issue Type: Bug
> Components: Extension Mediators
> Affects Versions: 1.1-QA-B3
> Environment: Windows XP, JDK1.5.0_06, Jakarta-jmeter-2.2
> Reporter: Evanthika Amarasiri
> Assignee: indika priyantha kumara
> Fix For: 1.1
>
>
> Invoked the client with 20 requests when the maximum number of requests
> allowed was 10 but it actually executed 12 and sometimes 11 requests. Tried
> with different values and the same thing occurred each time I tried.
> The policy configuration is as follows
> ***********************************************************************************************************************************************
> <definitions xmlns="http://ws.apache.org/ns/synapse">
> <registry provider="org.apache.synapse.registry.url.SimpleURLRegistry">
> <parameter name="root">file:repository/</parameter>
> <parameter name="cachableDuration">15000</parameter>
> </registry>
> <localEntry key="thottlePolicy">
> <wsp:Policy
> xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"
>
> xmlns:throttle="http://www.wso2.org/products/wso2commons/throttle">
> <throttle:ThrottleAssertion>
>
> <throttle:MaximumConcurrentAccess>10</throttle:MaximumConcurrentAccess>
> <wsp:All>
> <throttle:ID
> throttle:type="IP">Other</throttle:ID>
> <wsp:ExactlyOne>
> <wsp:All>
>
> <throttle:MaximumCount>10</throttle:MaximumCount>
>
> <throttle:UnitTime>800000</throttle:UnitTime>
>
> <throttle:ProhibitTimePeriod
> wsp:Optional="true">500</throttle:ProhibitTimePeriod>
> </wsp:All>
>
> <throttle:IsAllow>true</throttle:IsAllow>
> </wsp:ExactlyOne>
> </wsp:All>
> </throttle:ThrottleAssertion>
> </wsp:Policy>
> </localEntry>
> <sequence name="onAcceptSequence">.....</sequence>
> <sequence name="onRejectSequence" trace="enable">........</sequence>
> <in>
> <throttle onReject="onRejectSequence"
> onAccept="onAcceptSequence" id="A">
> <policy key="thottlePolicy"/>
> </throttle>
> </in>
> <out>
> <throttle id="A"/>
> <send/>
> </out>
> </definitions>
> ***********************************************************************************************************************************************
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]