Comments (3)
这个详细看了下代码,选择不同的运行模式就可以了
from swoole-src.
try catch 呢
发自我的 iPhone
在 2013年10月14日,18:35,believeus [email protected] 写道:
发现了一个很致命的问题,就是这个服务,如果在php脚本中出现语法,找不到类等致命错误的时候,服务进程会直接退出,造成服务不可用。
作为服务的话,稳定是必须的。一出错就不提供服务,这肯定不行。请问有没有什么解决方法?
简单说就是虽然出错,但如果不调用错误代码服务不会退出,即使运行错误代码,也能throw 出,但不退出服务进程—
Reply to this email directly or view it on GitHub.
from swoole-src.
这个没关系,正常的。当worker进程异常退出后,swoole会启动一个新的worker进程。
------------------ 原始邮件 ------------------
发件人: "wangchuan3533";[email protected];
发送时间: 2013年10月16日(星期三) 晚上8:00
收件人: "matyhtf/swoole"[email protected];
主题: Re: [swoole] 出错就退出 (#11)
try catch 呢
发自我的 iPhone
在 2013年10月14日,18:35,believeus [email protected] 写道:
发现了一个很致命的问题,就是这个服务,如果在php脚本中出现语法,找不到类等致命错误的时候,服务进程会直接退出,造成服务不可用。
作为服务的话,稳定是必须的。一出错就不提供服务,这肯定不行。请问有没有什么解决方法?
简单说就是虽然出错,但如果不调用错误代码服务不会退出,即使运行错误代码,也能throw 出,但不退出服务进程—
Reply to this email directly or view it on GitHub.
—
Reply to this email directly or view it on GitHub.
from swoole-src.
Related Issues (20)
- swoole 5.1.1 线上运行一段时间后,容易出现假死现象 HOT 2
- PECL release of swoole 5.1.2 HOT 8
- syntax error near unexpected token `SQLITE,' HOT 1
- CURLOPT_SHARE option is not supported in Swoole 5.0.3 HOT 1
- Segmentation fault when calling blocking function inside coroutine HOT 2
- make test error report HOT 1
- 实际上5.1.1的一键协程化,很多是不能用的,swoole会报错,理想很丰满,现实很骨感,还是得用之前得协程客户端 HOT 1
- Swoole\Coroutine\FastCGI\Client设置了withKeepConn为true仍然无法复用同一个连接 HOT 6
- Server::check_worker_exit_status(): worker(pid=3169, id=1) abnormal exit, status=0, signal=11 HOT 8
- tcp socket 服务,想限制包大小,package_max_length设置的1024 * 1024,传几个字节就报错,并且连接断开。 HOT 1
- 请求兼容micro运行环境,出现`Swoole\Http\Server can only be used in CLI mode`异常 HOT 4
- Handling Encrypted Packet Splitting in PHP Swoole HOT 1
- error with soap HOT 4
- Co\Http\Client cannot resolve "localhost": DNS Lookup resolve failed HOT 1
- mac 启用了swoole_curl 后composer执行没有任何返回 HOT 4
- blocking on get data with pdo from db HOT 5
- Configurable strategy for picking async-style http worker HOT 7
- `proc_open` failed because `Pty` is not supported in Swoole
- hyperf启动报错,worker进程异常退出 HOT 6
- Suggestion: Better core logging
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swoole-src.