bjoern icon indicating copy to clipboard operation
bjoern copied to clipboard

broken pipe after running for a while

Open dzpt opened this issue 1 year ago • 3 comments

I bind bjoern on socket.

from app import create_app
app = create_app()
if __name__ == '__main__':
    import bjoern
    bjoern.run(app, 'unix:/var/www/python/vyo/run.sock')

I notice after running for a while, there are numerous of broken pipe log.

Client 10 hit errno 32
Client 3 hit errno 32
Client 3 hit errno 32
Client 8 hit errno 32
Client 8 hit errno 32
Client 10 hit errno 32
Client 10 hit errno 32
Client 10 hit errno 32

dzpt avatar Jan 28 '23 04:01 dzpt

Are the clients disconnecting randomly? What are the clients?

jonashaag avatar Jan 28 '23 06:01 jonashaag

@jonashaag sure does, i use flask to serve request with nginx as a proxy. i suppose on some heavy tasks, nginx cuts the connections to the socket which causes the issue.

dzpt avatar Jan 28 '23 07:01 dzpt

In that the messages are nothing to worry about

jonashaag avatar Jan 28 '23 12:01 jonashaag