too many requests raise a BrokenPipeError

17 views
Skip to first unread message

Manuele Pesenti

unread,
Feb 28, 2020, 6:00:22 AM2/28/20
to web2py-users

Hi!

I realized with the help of Mapnik a quite raw but interesting tile server on top of web2py with the aim of serve some tile layers from some Postgis ad-hoc views. The main problem is that when too many requests are performed typically by quick zoom on a map some requests remains without a response and some messages from the rocket server pop up with thease messages:

2020-02-28 09:35:12,250 - Rocket.Errors.Thread-5 - ERROR - Traceback (most recent call last):

  File "/home/manuele/development/PLANET/web2py_r-2.18/gluon/rocket.py", line 1288, in run
    self.run_app(conn)

  File "/home/manuele/development/PLANET/web2py_r-2.18/gluon/rocket.py", line 1810, in run_app
    self.conn.sendall(b('0\r\n\r\n'))

BrokenPipeError: [Errno 32] Broken pipe


2020-02-28 09:54:02,050 - Rocket.Errors.Thread-6 - ERROR - Tried to send "500 Server Error" to client but received socket error


Would it be possible to prevent this problem? Could it be by-passed using apache (in proxy or wsgi mode) in a deploy environment?

Thank you in advance for any suggestion.

Cheers

    Manuele

Reply all
Reply to author
Forward
0 new messages