CMS MADE SIMPLE FORGE

CMS Made Simple Core

 

[#11674] Async processsing not robust

avatar
Created By: tom (tomphantoo)
Date Submitted: Thu Dec 14 17:24:47 -0500 2017

Assigned To:
Version: None
CMSMS Version: 2.2.4
Severity: Major
Resolution: None
State: Open
Summary:
Async processsing not robust
Detailed Description:
In CmsJobManager::trigger_async_processing(), fsockopen() silently fails if
there's anything untoward, in which case there's no async operation.

Examples I've found: if there's redirection (say, .htaccess appends '/' to URL)
or some certificate problem (say, self-signed).

To fix - essentially, replace fsockopen() by stream_socket_client(), with
tailored stream-context. Plus a few consequentials, of course.

I can provide recommended changes.


History

Comments
avatar
Date: 2017-12-17 11:51
Posted By: Robert Campbell (calguy1000)

Other problems exist too.... like if the web server cannot resolve the host name
properly (like if CMSMS is running in a vagrant box or virtual machine)...   so
in CMSMS 2.3 or versions after 2.2.5 we will allow an alternate host URL for
async processing to bypass all of these problems.
      
avatar
Date: 2018-07-14 18:35
Posted By: Robert Campbell (calguy1000)

Fixed for 2.3

We now use curl. and listen for a $config['async_processing_url'] config entry.
      
Updates

Updated: 2024-05-06 11:12
resolution_id: 7 => 5

Updated: 2018-07-14 18:35
resolution_id: 6 => 7

Updated: 2017-12-17 11:51
resolution_id: => 6