asynctask icon indicating copy to clipboard operation
asynctask copied to clipboard

Executing ssh session as async task

Open rafaelbecks opened this issue 8 years ago • 1 comments

I'm writing a function that uses an ssh client (https://github.com/phpseclib/phpseclib/) to generate a package on a server, I'm using asyncTask because it's an rest api endpoint, the command I execute via phpseclib takes approximately 12 minutes in finish, so I set the timeout endlessly (phpseclib timeout), everythings working great but the asyncTask stops being asynchronous, the timeout breaks the task and the http petition takes forever.

Is there a way to make a ssh session asynchronous, is there some function of phpseclib breaking the pcntl functions that enables async tasks on php?

I hope you can help me. Thank you very much

rafaelbecks avatar Jan 17 '18 01:01 rafaelbecks

Very much I apologize. Late answer is likely. Soon there will be a new version. revised approach. If interested, I can help. Any screen demonstration.

dmamontov avatar Mar 31 '18 02:03 dmamontov