File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4545
4646# Maximal line length when calling readline(). This is to prevent
4747# reading arbitrary length lines. RFC 3501 and 2060 (IMAP 4rev1)
48- # don't specify a line length. RFC 2683 however suggests limiting client
49- # command lines to 1000 octets and server command lines to 8000 octets.
50- # We have selected 10000 for some extra margin and since that is supposedly
51- # also what UW and Panda IMAP does.
52- _MAXLINE = 10000
48+ # don't specify a line length. RFC 2683 suggests limiting client
49+ # command lines to 1000 octets and that servers should be prepared
50+ # to accept command lines up to 8000 octets, so we used to use 10K here.
51+ # In the modern world (eg: gmail) the response to, for example, a
52+ # search command can be quite large, so we now use 1M.
53+ _MAXLINE = 1000000
5354
5455
5556# Commands
Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ Core and Builtins
1818Library
1919-------
2020
21+ - Issue #23647: Increase impalib's MAXLINE to accommodate modern mailbox sizes.
22+
2123- Issue #23539: If body is None, http.client.HTTPConnection.request now sets
2224 Content-Length to 0 for PUT, POST, and PATCH headers to avoid 411 errors from
2325 some web servers.
You can’t perform that action at this time.
0 commit comments