Investigate use of for real threads (pthreads) #23
Labels
No labels
bug
confirmed
critical
discussion
documentation
Doing
enhancement
suggestion
support
To Do
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: hazaar/hazaar-warlock#23
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
There used to be an old extension that allowed PHP to use pthread. I wouldn't mind having a look at this to see if we can make use of it for handling client connections. That way instead of having a single process handling message communication we can have a thread per client connection to increase performance.
So:
Ok. I'm going to close this. Threads in PHP is a pain in the ass. Basically because of ZTS (Zend Thread Safety) this won't work in anything that I use as the PHP distro I use for development is x86-nts (non-thread safe). I have tried getting it up and running but it's got way too much customisation and looks like it might even need a custom build of PHP to work. Bailing on this idea.
closed