DeNA / HandlerSocket-Plugin-for-MySQL

HandlerSocket is a NoSQL plugin for MySQL, working as a daemon inside the mysqld process, to accept tcp connections, and execute requests from clients. HandlerSocket does not support SQL queries; instead it supports simple CRUD operations on tables.
Other
1.13k stars 150 forks source link

libhsclient: fix socket read: don't fail on EINTR #110

Closed shadeware closed 7 years ago

shadeware commented 8 years ago

I had the same error as in #74 and after a bit of debugging strace showed me that read returned EINTR (which means that read syscall was interrupted by random signal like SIGPROF and did not really fail, it just needs to be called again) and libhsclient mistakenly reported it as eof.