TheSithPadawan / CSE222A-CourseProject

Course project for UCSD CSE222A
MIT License
2 stars 1 forks source link

Too many file descriptors opened on server side #1

Closed TheSithPadawan closed 5 years ago

TheSithPadawan commented 5 years ago

Load balancer fails when there are too many requests come in. Each request takes up a socket, so this would cause an OS error. This shows up on vegeta end as:

Get http://localhost:8080/foo?type=b: read tcp 127.0.0.1:51356->127.0.0.1:8080: read: connection reset by peer
Jingwu010 commented 5 years ago

This should be handled via catching Exceptions in RequestHandler by now.