python - Broken pipe error and connection reset by peer 104 -


i'm using bottle server implement own server using implementation not far away simple "hello world" here , own implementation (without routing section of course):
bottleapp =bottle.app() bottleapp.run(host='0.0.0.0',port=80, debug=true)

my server keep getting unresponsive time , in browser: connection reset peer, broken pipe errno 32
logs give me same stack traces such in question.

here own logs:
broken pipe stack trace
connection reset peer stack trace

what tried far, without success:

  1. wrapping server run line try except, like, shown here answer of "mhawke". stopped error messages in logs, apparently because caught them in except clause, problem when catching exception means have been thrown out of run method context, , want catch in way not cause server fall.
    don't know if possible without touching inner implementations files of bottle.

  2. adding before server run line:
    from signal import signal, sigpipe, sig_dfl signal(sigpipe,sig_dfl)
    suggested here, seems didn't had impact on not getting broken pipe\connection reset errors , server responsiveness.

  3. i thought of trying second answer here, don't have idea locate code in context of bottle server.

this sounds permissions issue or firewall.

if need listen on port 80, need run privileged account. need open port 80 tcp traffic.

i can see using appears posix (linux/unix/osx) if post os using can edit answer more specific how open firewall , execute privileged commands (probably sudo knows).


Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -