vapor-community / sockets

🔌 Non-blocking TCP socket layer, with event-driven server and client.
MIT License
575 stars 54 forks source link

Fix Linux socket read code and handle remote closes #104

Closed cwoloszynski closed 7 years ago

cwoloszynski commented 7 years ago

Under load (wrk -t2 -c5 -d5s http://localhost:8080/) the socket occasionally gets closed by the remote end and the server throws an error instead of closing the socket.

This PR fixes this.

codecov-io commented 7 years ago

Current coverage is 66.32% (diff: 62.50%)

Merging #104 into master will decrease coverage by 0.14%

@@             master       #104   diff @@
==========================================
  Files            29         29          
  Lines          1378       1381     +3   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
  Hits            916        916          
- Misses          462        465     +3   
  Partials          0          0          

Powered by Codecov. Last update 346fd74...a0a5842