diff options
| author | Stefan Monnier | 2011-05-09 16:41:14 -0300 |
|---|---|---|
| committer | Stefan Monnier | 2011-05-09 16:41:14 -0300 |
| commit | 68b5d5ee5404f47d3038c7e3af141e6013f2e491 (patch) | |
| tree | ffd64c9f45ac90d52748f30fb17355e38d24e95b | |
| parent | 797c735cc783c4662d7e5213bae60e89b40e071d (diff) | |
| download | emacs-68b5d5ee5404f47d3038c7e3af141e6013f2e491.tar.gz emacs-68b5d5ee5404f47d3038c7e3af141e6013f2e491.zip | |
* lisp/gnus/nntp.el (nntp-open-connection): Set TCP keepalive option.
| -rw-r--r-- | lisp/gnus/ChangeLog | 52 | ||||
| -rw-r--r-- | lisp/gnus/nntp.el | 5 |
2 files changed, 33 insertions, 24 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 2122c73ebca..99c636f16a7 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2011-05-09 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * nntp.el (nntp-open-connection): Set TCP keepalive option. | ||
| 4 | |||
| 1 | 2011-05-07 Julien Danjou <julien@danjou.info> | 5 | 2011-05-07 Julien Danjou <julien@danjou.info> |
| 2 | 6 | ||
| 3 | * shr.el (shr-link): Make shr-link inherit from link by default. | 7 | * shr.el (shr-link): Make shr-link inherit from link by default. |
| @@ -28,8 +32,8 @@ | |||
| 28 | 32 | ||
| 29 | 2011-05-02 Lars Magne Ingebrigtsen <larsi@gnus.org> | 33 | 2011-05-02 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 30 | 34 | ||
| 31 | * gnus-html.el (gnus-html-schedule-image-fetching): Use | 35 | * gnus-html.el (gnus-html-schedule-image-fetching): |
| 32 | url-queue-retrieve, if it exists. | 36 | Use url-queue-retrieve, if it exists. |
| 33 | 37 | ||
| 34 | * shr.el (shr-tag-img): Ditto. | 38 | * shr.el (shr-tag-img): Ditto. |
| 35 | 39 | ||
| @@ -43,7 +47,7 @@ | |||
| 43 | 47 | ||
| 44 | * gnus-agent.el (gnus-agent-store-article): New function. | 48 | * gnus-agent.el (gnus-agent-store-article): New function. |
| 45 | 49 | ||
| 46 | * nnheader.el (nnheader-insert-buffer-substring): Renamed from nntp- | 50 | * nnheader.el (nnheader-insert-buffer-substring): Rename from nntp- |
| 47 | and moved from that file for reuse. | 51 | and moved from that file for reuse. |
| 48 | 52 | ||
| 49 | * pop3.el (pop3-open-server): Error messages are "-ERR". | 53 | * pop3.el (pop3-open-server): Error messages are "-ERR". |
| @@ -115,8 +119,8 @@ | |||
| 115 | the gnus-extra-headers. | 119 | the gnus-extra-headers. |
| 116 | (gnus-registry-ignored-groups): Adjust defaults to match the parameter. | 120 | (gnus-registry-ignored-groups): Adjust defaults to match the parameter. |
| 117 | (gnus-registry-ignore-group-p): Adjust to take either a group/topic | 121 | (gnus-registry-ignore-group-p): Adjust to take either a group/topic |
| 118 | parameter list or a string list in `gnus-registry-ignored-groups'. Fix | 122 | parameter list or a string list in `gnus-registry-ignored-groups'. |
| 119 | logic error. | 123 | Fix logic error. |
| 120 | 124 | ||
| 121 | 2011-04-21 Lars Magne Ingebrigtsen <larsi@gnus.org> | 125 | 2011-04-21 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 122 | 126 | ||
| @@ -222,7 +226,7 @@ | |||
| 222 | * gnus-registry.el (gnus-registry-remake-db): Put the warning on a | 226 | * gnus-registry.el (gnus-registry-remake-db): Put the warning on a |
| 223 | "warning" level. | 227 | "warning" level. |
| 224 | 228 | ||
| 225 | * mm-url.el (mm-url-package-name): Removed to ease third-party reuse. | 229 | * mm-url.el (mm-url-package-name): Remove to ease third-party reuse. |
| 226 | (mm-url-insert-file-contents): Don't set the package names. | 230 | (mm-url-insert-file-contents): Don't set the package names. |
| 227 | 231 | ||
| 228 | 2011-04-11 Teodor Zlatanov <tzz@lifelogs.com> | 232 | 2011-04-11 Teodor Zlatanov <tzz@lifelogs.com> |
| @@ -305,10 +309,10 @@ | |||
| 305 | save/read cycles. | 309 | save/read cycles. |
| 306 | (gnus-registry-read): Use it. | 310 | (gnus-registry-read): Use it. |
| 307 | (gnus-registry-make-db): Use it. | 311 | (gnus-registry-make-db): Use it. |
| 308 | (gnus-registry-spool-action, gnus-registry-handle-action): Fix | 312 | (gnus-registry-spool-action, gnus-registry-handle-action): |
| 309 | messaging. | 313 | Fix messaging. |
| 310 | (gnus-registry--split-fancy-with-parent-internal): Fix loop. Map | 314 | (gnus-registry--split-fancy-with-parent-internal): Fix loop. |
| 311 | references to actual group names with sender and subject tracking. | 315 | Map references to actual group names with sender and subject tracking. |
| 312 | (gnus-registry-post-process-groups): Use `cond' for better messaging. | 316 | (gnus-registry-post-process-groups): Use `cond' for better messaging. |
| 313 | (gnus-registry-usage-test): Add subject lookup test. | 317 | (gnus-registry-usage-test): Add subject lookup test. |
| 314 | 318 | ||
| @@ -370,8 +374,8 @@ | |||
| 370 | value. | 374 | value. |
| 371 | 375 | ||
| 372 | * nntp.el (nntp-open-connection-function): Document the fact that some | 376 | * nntp.el (nntp-open-connection-function): Document the fact that some |
| 373 | values are not functions but are instead handled specially. Recognize | 377 | values are not functions but are instead handled specially. |
| 374 | nntp-open-plain-stream value. | 378 | Recognize nntp-open-plain-stream value. |
| 375 | (nntp-open-connection): Recognize that value. | 379 | (nntp-open-connection): Recognize that value. |
| 376 | 380 | ||
| 377 | 2011-03-29 Lars Magne Ingebrigtsen <larsi@gnus.org> | 381 | 2011-03-29 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| @@ -396,7 +400,7 @@ | |||
| 396 | * gnus-agent.el (gnus-agent-fetch-headers): Don't message if we're not | 400 | * gnus-agent.el (gnus-agent-fetch-headers): Don't message if we're not |
| 397 | downloading anything. | 401 | downloading anything. |
| 398 | 402 | ||
| 399 | * gnus.el (gnus-splash-svg-color-symbols): Removed superfluous `and'. | 403 | * gnus.el (gnus-splash-svg-color-symbols): Remove superfluous `and'. |
| 400 | 404 | ||
| 401 | 2011-03-29 Adam Sjøgren <asjo@koldfront.dk> | 405 | 2011-03-29 Adam Sjøgren <asjo@koldfront.dk> |
| 402 | 406 | ||
| @@ -409,13 +413,13 @@ | |||
| 409 | * gnus-sum.el (gnus-simplify-buffer-fuzzy): Take the regexp explicitly | 413 | * gnus-sum.el (gnus-simplify-buffer-fuzzy): Take the regexp explicitly |
| 410 | instead of using the global gnus-simplify-subject-fuzzy-regexp. | 414 | instead of using the global gnus-simplify-subject-fuzzy-regexp. |
| 411 | (gnus-simplify-subject-fuzzy): Use the local | 415 | (gnus-simplify-subject-fuzzy): Use the local |
| 412 | gnus-simplify-subject-fuzzy-regex instead of the global one. This | 416 | gnus-simplify-subject-fuzzy-regex instead of the global one. |
| 413 | makes using this variable in group parameters work. | 417 | This makes using this variable in group parameters work. |
| 414 | 418 | ||
| 415 | 2011-03-29 Teodor Zlatanov <tzz@lifelogs.com> | 419 | 2011-03-29 Teodor Zlatanov <tzz@lifelogs.com> |
| 416 | 420 | ||
| 417 | * gnus-registry.el (gnus-registry-unfollowed-groups): Add | 421 | * gnus-registry.el (gnus-registry-unfollowed-groups): |
| 418 | "archive:sent" to the unfollowed group regex (for the recent Gnus | 422 | Add "archive:sent" to the unfollowed group regex (for the recent Gnus |
| 419 | archive:sent-YYYY-MM-DD groups). | 423 | archive:sent-YYYY-MM-DD groups). |
| 420 | (gnus-registry-split-fancy-with-parent): Bail out early in sender | 424 | (gnus-registry-split-fancy-with-parent): Bail out early in sender |
| 421 | tracking if there are more than `gnus-registry-max-track-groups' | 425 | tracking if there are more than `gnus-registry-max-track-groups' |
| @@ -445,7 +449,7 @@ | |||
| 445 | Handle the no-parameter case exactly as open-network-stream, with no | 449 | Handle the no-parameter case exactly as open-network-stream, with no |
| 446 | additional stream processing. Search plists using plist-get. | 450 | additional stream processing. Search plists using plist-get. |
| 447 | Explicitly add :end-of-commend parameter if it is missing. | 451 | Explicitly add :end-of-commend parameter if it is missing. |
| 448 | (proto-stream-open-default): Renamed from | 452 | (proto-stream-open-default): Rename from |
| 449 | proto-stream-open-network-only. Return 'default as the type. | 453 | proto-stream-open-network-only. Return 'default as the type. |
| 450 | (proto-stream-open-starttls): Rename from proto-stream-open-network. | 454 | (proto-stream-open-starttls): Rename from proto-stream-open-network. |
| 451 | Use plist-get. Don't return `tls' as the type if STARTTLS negotiation | 455 | Use plist-get. Don't return `tls' as the type if STARTTLS negotiation |
| @@ -526,15 +530,15 @@ | |||
| 526 | * mm-uu.el (mm-uu-dissect-text-parts): Only dissect handle that are | 530 | * mm-uu.el (mm-uu-dissect-text-parts): Only dissect handle that are |
| 527 | inline. | 531 | inline. |
| 528 | 532 | ||
| 529 | * gnus-art.el (article-hide-list-identifiers): Use | 533 | * gnus-art.el (article-hide-list-identifiers): |
| 530 | gnus-group-get-list-identifiers. | 534 | Use gnus-group-get-list-identifiers. |
| 531 | 535 | ||
| 532 | * gnus-sum.el (gnus-group-get-list-identifiers): New function. | 536 | * gnus-sum.el (gnus-group-get-list-identifiers): New function. |
| 533 | (gnus-summary-remove-list-identifiers): Use | 537 | (gnus-summary-remove-list-identifiers): |
| 534 | gnus-group-get-list-identifiers to get regexp. | 538 | Use gnus-group-get-list-identifiers to get regexp. |
| 535 | (gnus-select-newsgroup, gnus-summary-insert-subject) | 539 | (gnus-select-newsgroup, gnus-summary-insert-subject) |
| 536 | (gnus-summary-insert-articles): Call | 540 | (gnus-summary-insert-articles): |
| 537 | gnus-summary-remove-list-identifiers unconditionally. | 541 | Call gnus-summary-remove-list-identifiers unconditionally. |
| 538 | 542 | ||
| 539 | 2011-03-15 Lars Magne Ingebrigtsen <larsi@gnus.org> | 543 | 2011-03-15 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 540 | 544 | ||
diff --git a/lisp/gnus/nntp.el b/lisp/gnus/nntp.el index 727d9b4d8c0..aa4b9184dbb 100644 --- a/lisp/gnus/nntp.el +++ b/lisp/gnus/nntp.el | |||
| @@ -1362,6 +1362,11 @@ password contained in '~/.nntp-authinfo'." | |||
| 1362 | (nntp-kill-buffer pbuffer)) | 1362 | (nntp-kill-buffer pbuffer)) |
| 1363 | (when (and (buffer-name pbuffer) | 1363 | (when (and (buffer-name pbuffer) |
| 1364 | process) | 1364 | process) |
| 1365 | (when (and (fboundp 'set-network-process-option) | ||
| 1366 | (eq (process-type process) 'network)) | ||
| 1367 | ;; Use TCP-keepalive so that connections that pass through a NAT router | ||
| 1368 | ;; don't hang when left idle. | ||
| 1369 | (set-network-process-option process :keepalive t)) | ||
| 1365 | (gnus-set-process-query-on-exit-flag process nil) | 1370 | (gnus-set-process-query-on-exit-flag process nil) |
| 1366 | (if (and (nntp-wait-for process "^2.*\n" buffer nil t) | 1371 | (if (and (nntp-wait-for process "^2.*\n" buffer nil t) |
| 1367 | (memq (process-status process) '(open run))) | 1372 | (memq (process-status process) '(open run))) |