For #265973: XML-RPC chokes with long server response I created a test. Is seems that that bug is memory dependent.
This patch adds a service messageSizedInK and creates a 80K and a 160K message. Both messages pass my test. Is this test solid enough?
I think simpletest must run test with memory settings dependant.
| Comment | File | Size | Author |
|---|---|---|---|
| #12 | big_xml_message.patch | 2.98 KB | boombatower |
| #11 | big_xml_message.patch | 2.95 KB | clemens.tolboom |
| #9 | big_xml_message.patch | 3.13 KB | boombatower |
| #7 | big_xml_message.patch | 3.13 KB | clemens.tolboom |
| #5 | big_xml_message.patch | 3.32 KB | boombatower |
Comments
Comment #1
clemens.tolboomHmmm ... this messageSizedInK should not be in validator1 service. And the test is wrong implemented.
The new patch has it's own service name message and it's own test class.
Messages up to around 160K are successful.
Comment #2
kika commentedxmlrpc_test_message_sized_in_kb($size) sounds better
Comment #3
boombatower commentedComment #4
boombatower commentedFew format issues and clearness changes (#2 included) (minor changes):
[ ]+$or your editor if it has it.)Test passes:
3 passes, 0 fails, 0 exceptions
Comment #5
boombatower commentedTest looks good I think it is ready to go. A few more formatting fixes and added comments.
I think it ready to go.
Comment #6
dries commentedThe patch still has coding style issues (i.e. incorrect spacing after commas). I'd also write XML-RPC in PHPdoc, rather than xmlrpc.
Comment #7
clemens.tolboom- Changed some doc. (XML-RPC, size in KB)
- Did not find that space :-(
- Removed useless doc line (// Make sure xmlrpc_message is included by calling xmlrpc first.)
- Changed the calling order for getting remote and local message.
Comment #8
boombatower commentedComment #9
boombatower commentedFixed a period and one extra space.
I think it looks fine. (thine eyes != perfect)
Comment #10
webchickNeeds to be consistent with other PHPDoc, which is to put the param on one line, the description on the next.
needs a space between for and (
Sorry? I don't parse this comment.
The point of this function isn't clear from its name; would help if there was a verb there. But it's weird to have a layer of indirection between the testX function and the assertions. I get that you're trying to avoid duplication of code, but what if we did something like this intead:
Comment #11
clemens.tolboomGreat suggestion for that function removal.
Bummer I wasted your time for the other typos.
Hope everything is now in order.
Comment #12
boombatower commentedRemoved some extra line spacing and added a period to comment.
Comment #13
webchickAwesome, thank you!
I just made one little tweak which was to move...
...outside of the foreach loop, since it's not dependent on $size.
Committed. Thanks!
Comment #14
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.