question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

listen 参数支持

module.exports = {
  listen: {
    path: '',
    port: '',
    backlog: '',
    hostname: '',
  }
}

listen 的时候可以获取 app.config,所以参数加到 config 比 startCluster 更好。

  • config.listen.port 的优先级高于 startCluster 传入的。
  • 如果指定了 path 则优先级更高。

解决 https://github.com/eggjs/egg/issues/469https://github.com/eggjs/egg/issues/435

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:13 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
fengmk2commented, Mar 1, 2017

统一到 start 配置项?这样起多少个进程都可以配置了。而且也可以给后续扩展留好路子。

module.exports = {
  start: {
    listen: {},
    fork: {},
  }
}
0reactions
LiShiSangZicommented, Jul 19, 2017

@popomore 希望尽快推出。如果有需要我们可以帮忙upstream。

Read more comments on GitHub >

github_iconTop Results From Across the Web

listen(2) - Linux manual page - man7.org
listen () marks the socket referred to by sockfd as a passive socket, that is, as a socket that will be used to...
Read more >
Error: duplicate listen options for [::]:443 · Issue #5550 - GitHub
I get nginx: [emerg] duplicate listen options for [::]:443 in /etc/nginx/sites-enabled/others:19 for this config. OS: Ubuntu 16.04. Any help?
Read more >
Listen Options - ejabberd Docs
This is a detailed description of each option allowed by the listening modules: access. AccessName. This option defines access to the port.
Read more >
Nginx duplicate listen options for [::]:80 error - Server Fault
I have this in my server block: listen 80;listen [::]:80; and it runs fine. Do you have any other server blocks? – simlev....
Read more >
SnapshotListenOptions - Node.js API reference - Firebase
An options object that can be passed to DocumentReference.onSnapshot() , Query.onSnapshot() and QuerySnapshot.docChanges() to control which types of changes ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found