Subject: | IO Async Function Issue |
Date: | Tue, 5 Nov 2013 11:52:08 -0500 |
To: | "bug-IO-Async [...] rt.cpan.org" <bug-IO-Async [...] rt.cpan.org> |
From: | Chris Wright <Chris.Wright [...] OntarioSystems.com> |
The attached script demonstrates what I am seeing with this library. I have run this test on Centos Perl 5.18.1 with IO::Async 0.60 and Windows 7 x64 Strawberry x64 5.16.3 with IO::Async 0.61.
The program calls the Function once and the return from that function calls the function 4 more times in quick succession. One of these calls doesn't happen if the function is declared with Max Workers at 1, 2, or 3. If I set Max Workers to 4, all 4 function calls occur.
c:\Temp>perl IOAsyncFunction.pl
Test started running on MSWin32
CallWebService called with Web Service 1 and Version 10
Function called for Web Service 1 with version 10
Web Service 1 returned version 10 obtained
CallWebService called with Web Service 2 and Version 20
Function called for Web Service 2 with version 20
CallWebService called with Web Service 3 and Version 30
CallWebService called with Web Service 4 and Version 40
CallWebService called with Web Service 5 and Version 50
Web Service 2 returned version 20 obtained
Function called for Web Service 4 with version 40
Web Service 4 returned version 40 obtained
Function called for Web Service 5 with version 50
Web Service 5 returned version 50 obtained
Terminating on signal SIGINT(2)
c:\Temp>
Attention: This message and all attachments are private and may contain
information that is confidential and privileged. If you received this
message in error, please notify the sender by reply email and delete
the message immediately.
Message body is not shown because sender requested not to inline it.