Skip to content
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

出错就退出 #11

Closed
believeus opened this issue Oct 14, 2013 · 3 comments
Closed

出错就退出 #11

believeus opened this issue Oct 14, 2013 · 3 comments

Comments

@believeus
Copy link

发现了一个很致命的问题,就是这个服务,如果在php脚本中出现语法,找不到类等致命错误的时候,服务进程会直接退出,造成服务不可用。
作为服务的话,稳定是必须的。一出错就不提供服务,这肯定不行。请问有没有什么解决方法?
简单说就是虽然出错,但如果不调用错误代码服务不会退出,即使运行错误代码,也能throw 出,但不退出服务进程

@believeus
Copy link
Author

这个详细看了下代码,选择不同的运行模式就可以了

@wangchuan3533
Copy link
Contributor

try catch 呢

发自我的 iPhone

在 2013年10月14日,18:35,believeus notifications@github.com 写道:

发现了一个很致命的问题,就是这个服务,如果在php脚本中出现语法,找不到类等致命错误的时候,服务进程会直接退出,造成服务不可用。
作为服务的话,稳定是必须的。一出错就不提供服务,这肯定不行。请问有没有什么解决方法?
简单说就是虽然出错,但如果不调用错误代码服务不会退出,即使运行错误代码,也能throw 出,但不退出服务进程


Reply to this email directly or view it on GitHub.

@matyhtf
Copy link
Member

matyhtf commented Oct 16, 2013

这个没关系,正常的。当worker进程异常退出后,swoole会启动一个新的worker进程。

------------------ 原始邮件 ------------------
发件人: "wangchuan3533";notifications@github.com;
发送时间: 2013年10月16日(星期三) 晚上8:00
收件人: "matyhtf/swoole"swoole@noreply.github.com;

主题: Re: [swoole] 出错就退出 (#11)

try catch 呢

发自我的 iPhone

在 2013年10月14日,18:35,believeus notifications@github.com 写道:

发现了一个很致命的问题,就是这个服务,如果在php脚本中出现语法,找不到类等致命错误的时候,服务进程会直接退出,造成服务不可用。
作为服务的话,稳定是必须的。一出错就不提供服务,这肯定不行。请问有没有什么解决方法?
简单说就是虽然出错,但如果不调用错误代码服务不会退出,即使运行错误代码,也能throw 出,但不退出服务进程


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHub.

@benzhan benzhan mentioned this issue Jan 8, 2016
This was referenced Jun 3, 2016
twose pushed a commit that referenced this issue Aug 18, 2018
@JesseWjs JesseWjs mentioned this issue Oct 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants