Eonblast/Emysql — pull request #49 by marcparadise (2012-12-13 00:34:28+00:00)
Title: use default timeout for recv

Because some queries are (and will continue) to run long in mysql database, allow recv header timeout period to use the custom timeout. This will reduce overall load in most cases - even when we exceed the original default of 8s, b/c it will reduce the client's need for retrying the same long query.

@seth @langloisjp could you take a quick look?

NOTE: Originally I had used the custom timeout exactly, but that causes the timeout error to surface differently through the connection monitor - the timeout occurs in the monitor and not at the gen_tcp level, which woudl obscure the error in the case of an actual timeout.