| To: | pcp@xxxxxxxxxxx |
|---|---|
| Subject: | PATCH: Implement time-out for connect() in http_fetcher |
| From: | Ryan Doyle <rdoyle@xxxxxxxxxx> |
| Date: | Thu, 11 Apr 2013 15:31:57 +1000 (EST) |
| Delivered-to: | pcp@xxxxxxxxxxx |
| In-reply-to: | <2067433358.125036.1365657871253.JavaMail.root@xxxxxxxxxxxxxxxxxxxxxx> |
|
A timeout setting exists in src/libpcp_http/src/http_fetcher.c. This is a library that the Apache PMDA uses to read the server status page (the source of the apache metrics).
I noticed that this library doesn't honour the timeout value when connect()'ing to a HTTP server. The patch implements a timeout for connect() via select(). See patch provided, otherwise it is in the branch "ryan" at git://github.com/ryandoyle/pcp.git. Cheers ---- Ryan Doyle
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | pcp updates, Ken McDonell |
|---|---|
| Next by Date: | PATCH: - Implement time-out for connect() in http_fetcher, Ryan Doyle |
| Previous by Thread: | pcp updates: python merge, Nathan Scott |
| Next by Thread: | PATCH: - Implement time-out for connect() in http_fetcher, Ryan Doyle |
| Indexes: | [Date] [Thread] [Top] [All Lists] |