Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keepalive_get will reuse connections with state_db_connect #12

Open
cfsego opened this issue Nov 11, 2011 · 1 comment
Open

keepalive_get will reuse connections with state_db_connect #12

cfsego opened this issue Nov 11, 2011 · 1 comment

Comments

@cfsego
Copy link

cfsego commented Nov 11, 2011

in v1.1.0

conf is
upstream dns_backend {
drizzle_server 10.232.31.89:3306;
drizzle_keepalive max=70 mode=single overflow=ignore;
}

we find that the connection can be only used once.
and the error log says "BROKEN PIPE"

we found that the ngx_http_drizzle_keepalive_get_XXX() returns the dp with reset dp->state, so it is state_db_connect

@agentzh
Copy link
Member

agentzh commented Nov 11, 2011

On Fri, Nov 11, 2011 at 6:04 PM, cfsego
[email protected]
wrote:

in v1.1.0

You mean nginx 1.1.0? What're your versions of libdrizzle and ngx_drizzle?

conf is
upstream dns_backend {
   drizzle_server 10.232.31.89:3306;
   drizzle_keepalive max=70 mode=single overflow=ignore;
}

we find that the connection can be only used once.
and the error log says "BROKEN PIPE"

we found that the ngx_http_drizzle_keepalive_get_XXX() returns the dp with reset dp->state, so it is state_db_connect

I don't quite follow you here. Can you elaborate? What kind of MySQL
queries are you using? And what conditions are required to reproduce
this issue? Also, showing the related parts of your error.log with
debug error log level will also be very much helpful.

Regards,
-agentzh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants