Commit 52c4c91
committed
share deaduntils between hosts
This will help avoid many socket timeout especially when we use
python-memcached with eventlet.
For example,When use eventlet,for each greenlet we call client.get
first time,the client will be rebuild,and client.servers[*].deaduntil
will be 0.For each http request,we will have one greenlet.So we get
a socket timeout for each request.
This could be fixed in application,but i believe it's better to fix
it in python-memcached.1 parent b13d6fc commit 52c4c91
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1330 | 1330 | | |
1331 | 1331 | | |
1332 | 1332 | | |
| 1333 | + | |
| 1334 | + | |
| 1335 | + | |
1333 | 1336 | | |
1334 | 1337 | | |
1335 | 1338 | | |
| |||
1371 | 1374 | | |
1372 | 1375 | | |
1373 | 1376 | | |
1374 | | - | |
| 1377 | + | |
1375 | 1378 | | |
1376 | 1379 | | |
1377 | 1380 | | |
| |||
1395 | 1398 | | |
1396 | 1399 | | |
1397 | 1400 | | |
| 1401 | + | |
1398 | 1402 | | |
1399 | 1403 | | |
1400 | 1404 | | |
| |||
1411 | 1415 | | |
1412 | 1416 | | |
1413 | 1417 | | |
| 1418 | + | |
1414 | 1419 | | |
1415 | 1420 | | |
1416 | 1421 | | |
| |||
0 commit comments