Comments (4)
Hi, maybe you could describe in detail.
from goc2p.
scheduler.go line 102 has to be put to the end of the start function, because scheduler actually has not been fully started yet at that time. Downloader, analyzer are all not initialized.
However, monitor is waiting for this stat change and will query those components afterwards. So there will be a risk condition when those initializing components are queried by the monitor.
from goc2p.
OK, sometimes there will be a problem, although it seems had little effect. What do you do to improve it? Welcome to send PR. :-)
In fact, it's to prevent repeated start.
from goc2p.
@lzl1024 You are right.
@hyper0x
E.g. :
- When the monitor is waiting for state change of scheduler at monitor.go line 193
- Then go to line 102 in scheduler.go the state of scheduler change to be running.
- After that Function "waitForSchedulerStart" returns, and it runs to line 201 in monitor.go. But at that time, the ErrorChan is not initialized. So it occurs a nil pointer panic.
from goc2p.
Related Issues (12)
- 关于原书第一版中channel和goroutine一章载荷发生器 并发量公式
- 解析完标签生成新请求的时候Depth是否需要+1
- 示例代码无法运行的问题 HOT 3
- In goc2p/src/multiproc/apipe/apipe.go demo02 generates defunct process HOT 1
- 关于golang正则表达式中不支持后向引用,有什么好的解决方案吗 HOT 1
- omap: Move delete into if HOT 1
- 可以每一章代码放在一起,以章为索引,这样方便读者去查看。 HOT 2
- ConcurrentMap 内容无法转换成 JSON 字符串 HOT 1
- shorter return when meet if
- Incorrect definition of `IsSuperset` !
- redundant timestop in benchmark test for golang default map HOT 1
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 goc2p.