Set the tag of the last message received to the server knows which messages has to be sent to subscriber. Is a replacement for If-None-Match header. Example, $arg_tag indicate that the value will be take from tag argument.
Set the tag of the last message received to the server knows which messages has to be sent to subscriber. Is a replacement for If-None-Match header. Example, $arg_tag indicate that the value will be take from tag argument.
Set from where the user agent will be get to be used on validation for the need of padding. Is a replacement for User-Agent header. Example, $arg_ua indicate that the value will be take from ua argument.
Set the minimum header size and minimum message size to each user agent who match the given expression. The value may be compound for many groups on the format _user-agent-regexp,header_min_size,message_min_size_ separate by a colon (_:_) .
h1(#attention). Attention
h1(#attention). Attention
This module controls everything needed to send the messages to subscribers.
This module controls everything needed to send the messages to subscribers.
@@ -47,6 +47,8 @@ class TestMeasureMemory < Test::Unit::TestCase
...
@@ -47,6 +47,8 @@ class TestMeasureMemory < Test::Unit::TestCase
assert(((expected_message-10)<published_messages)&&(published_messages<(expected_message+10)),"Message size is far from %d bytes (expected: %d, published: %d)"%([@@message_estimate_size,expected_message,published_messages]))
assert(((expected_message-10)<published_messages)&&(published_messages<(expected_message+10)),"Message size is far from %d bytes (expected: %d, published: %d)"%([@@message_estimate_size,expected_message,published_messages]))
EventMachine.stop
EventMachine.stop
}
}
add_test_timeout
}
}
end
end
...
@@ -59,6 +61,7 @@ class TestMeasureMemory < Test::Unit::TestCase
...
@@ -59,6 +61,7 @@ class TestMeasureMemory < Test::Unit::TestCase
EventMachine.run{
EventMachine.run{
publish_message_in_loop(1000,headers,body)
publish_message_in_loop(1000,headers,body)
add_test_timeout(20)
}
}
EventMachine.run{
EventMachine.run{
...
@@ -71,6 +74,7 @@ class TestMeasureMemory < Test::Unit::TestCase
...
@@ -71,6 +74,7 @@ class TestMeasureMemory < Test::Unit::TestCase
assert(((expected_channel-10)<created_channels)&&(created_channels<(expected_channel+10)),"Channel size is far from %d bytes (expected: %d, created: %d)"%([@@channel_estimate_size,expected_channel,created_channels]))
assert(((expected_channel-10)<created_channels)&&(created_channels<(expected_channel+10)),"Channel size is far from %d bytes (expected: %d, created: %d)"%([@@channel_estimate_size,expected_channel,created_channels]))
EventMachine.stop
EventMachine.stop
}
}
add_test_timeout
}
}
end
end
...
@@ -98,6 +102,7 @@ class TestMeasureMemory < Test::Unit::TestCase
...
@@ -98,6 +102,7 @@ class TestMeasureMemory < Test::Unit::TestCase
EventMachine.stop
EventMachine.stop
}
}
end
end
add_test_timeout(30)
}
}
end
end
...
@@ -108,13 +113,20 @@ class TestMeasureMemory < Test::Unit::TestCase
...
@@ -108,13 +113,20 @@ class TestMeasureMemory < Test::Unit::TestCase