Skip to content

Commit

Permalink
Merge pull request #787 from wagnert/1.0
Browse files Browse the repository at this point in the history
Switch from Stackable to array to avoid Windows segfaults
  • Loading branch information
wagnert committed May 6, 2015
2 parents 7a858c8 + 58d2876 commit 25bf931
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
# Version 1.0.5

## Bugfixes

* Fixed [#784](https://github.com/appserver-io/appserver/issues/784) - Application Deployment after switching to safe user

## Features

* Closed [#758](https://github.com/appserver-io/appserver/issues/758) - Update to latest PHP 5.5.24

# Version 1.0.4

## Bugfixes
Expand Down
2 changes: 1 addition & 1 deletion build.default.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#--------------------------------------------------------------------------------

# ---- Module Release Settings --------------------------------------------------
release.version = 1.0.4
release.version = 1.0.5
release.name = Iron Horse

# ---- PHPCPD Settings ----------------------------------------------------------
Expand Down
5 changes: 4 additions & 1 deletion src/AppserverIo/Appserver/MessageQueue/MessageQueue.php
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,11 @@ public function run()

// create a separate queue for each priority
foreach (PriorityKeys::getAll() as $priorityKey) {
// ATTENTION: We use an array for the jobs (threads) that are executing acutually.
// Using stackables leads to random segfaults on Windows!
$jobsExecuting[$counter] = array();

// create the containers for the worker
$jobsExecuting[$counter] = new GenericStackable();
$jobsToExceute[$counter] = new GenericStackable();
$messageStates[$counter] = new GenericStackable();

Expand Down
4 changes: 2 additions & 2 deletions src/AppserverIo/Appserver/MessageQueue/QueueWorker.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,11 @@ public function injectMessageStates(GenericStackable $messageStates)
/**
* Inject the storage for the executing jobs.
*
* @param \AppserverIo\Storage\GenericStackable $jobsExecuting The storage for the executing jobs
* @param array $jobsExecuting The storage for the executing jobs
*
* @return void
*/
public function injectJobsExecuting(GenericStackable $jobsExecuting)
public function injectJobsExecuting(array $jobsExecuting)
{
$this->jobsExecuting = $jobsExecuting;
}
Expand Down

0 comments on commit 25bf931

Please sign in to comment.