-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[appserver-io/appserver] Multithreading in Windows #653
Comments
Hi, could you paste your script here? it's will help a lot to understand whats intended to do. Cheers. |
I am using phantomjs.exe (a headless browser) to create screenshots of websites. http://localhost:9080/phantom/phantom_bp.php?url=$url The script phantom_bp.php contains: I use multi-curl to invoke multiple requests from another script on another webserver. |
Ok thanks for sharing you script. Is that script called from browser or another Webserver using another script which uses multicurl?... sorry for that questions... but i still can not follow you... could you visualize your request chain like.
|
This script is called from chrome browser from another webserver (apache @ localhost:80) and it uses multicurl.
|
Ok what if you call the appserver script (@PORT 9080) directly from the browser. Does that work concurrently? |
No it doesn't. I tried opening multiple chrome windows and they don't work concurrently |
I guess |
Unfortunately i still have serial output. I opened 5 windows with sleep time 5secs and the request were processed one after another (not parallel) |
Ok i'll check that on my windowz machine... |
thank you zelgerj |
hm sorry but i can not reproduce your problem. Parallel requests on a script with sleep(5) are processed all concurrently... some special on your configuration or windows system itself?! |
well i didn't make any changes to the default configuration of appserver, and i'm only using a simple wamp server (for apache, php mysql) on a windows 7 64bit hexacore i7. bummer. |
could u please send me a link of your installation.? maybe i have a wrong version of appserver (i downloaded it today from appserver's homepage) |
The link should be ok... I'll create a test for that scenario, that checks if it is non-concurrent. I'll get back on you if it is ready... |
Thank you very much Zelgerj.. Just to let you know, i installed appserver to another machine (win7 32 bit this time) and i had the same problem (tried the multiple windows & sleep script). |
@ndamofli: Finally i'am not able to reproduce the problem. Could you setup a virtual machine and gimme access to it, so i can reproduce and debug the problem? |
Hi @ndamofli , can you give us an update on this issue? We were not able to reproduce it here and would like to close it if the problem does not exist anymore. |
Closed as not reproducable |
Hi there, I installed the windows version of appserver and i have a problem with multithreading.
I have a simple php script that runs an exec command and returns the output.
I am trying to run this script multiple times concurrently but my requests are processed one by one (serial).
I am using another (apache) server to invoke the requests to appserver via multi-curl.
The text was updated successfully, but these errors were encountered: