Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
3ccc1742
Commit
3ccc1742
authored
Nov 03, 2011
by
Stefan Monnier
Browse files
* lisp/gnus/nnimap.el (nnimap-open-connection-1): Use tcp-keealive if possible.
parent
3ab15fd6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
lisp/gnus/ChangeLog
lisp/gnus/ChangeLog
+4
-0
lisp/gnus/nnimap.el
lisp/gnus/nnimap.el
+8
-0
No files found.
lisp/gnus/ChangeLog
View file @
3ccc1742
2011-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
* nnimap.el (nnimap-open-connection-1): Use tcp-keealive if possible.
2011-11-02 Teodor Zlatanov <tzz@lifelogs.com>
* gnus-util.el (gnus-bound-and-true-p): Another comment to explain why
...
...
lisp/gnus/nnimap.el
View file @
3ccc1742
...
...
@@ -397,6 +397,14 @@ textual parts.")
(
stream-type
(
plist-get
props
:type
)))
(
when
(
and
stream
(
not
(
memq
(
process-status
stream
)
'
(
open
run
))))
(
setq
stream
nil
))
(
when
(
and
(
fboundp
'set-network-process-option
)
;; Not in XEmacs.
(
fboundp
'process-type
)
;; Emacs 22 doesn't provide it.
(
eq
(
process-type
stream
)
'network
))
;; Use TCP-keepalive so that connections that pass through a NAT
;; router don't hang when left idle.
(
set-network-process-option
stream
:keepalive
t
))
(
setf
(
nnimap-process
nnimap-object
)
stream
)
(
setf
(
nnimap-stream-type
nnimap-object
)
stream-type
)
(
if
(
not
stream
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment