* bug#59135: Receiving large files with ERC-DCC
@ 2022-11-08 17:44 Tohiko Looka
2022-11-09 14:00 ` J.P.
0 siblings, 1 reply; 4+ messages in thread
From: Tohiko Looka @ 2022-11-08 17:44 UTC (permalink / raw)
To: 59135
When receiving large files with ERC-DCC I get the error
ERC-DCC (erc-pack-int): packet too large
incessantly which makes Emacs unresponsive until eventually the IRC
server connection is closed.
I believe this happens when the file size is larger than 2 or 4 GB
which does not fit in an integer. This causes a failure when the
function erc-dcc-get-filter tries to send back the number of received
bytes.
Is there a way around this?
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#59135: Receiving large files with ERC-DCC
2022-11-08 17:44 bug#59135: Receiving large files with ERC-DCC Tohiko Looka
@ 2022-11-09 14:00 ` J.P.
2022-11-09 14:23 ` Tohiko Looka
[not found] ` <CAPx46aSyu_dzR2QXP3PpKUSgqm1fMbQAVetEaA4aLAcMOhU-dg@mail.gmail.com>
0 siblings, 2 replies; 4+ messages in thread
From: J.P. @ 2022-11-09 14:00 UTC (permalink / raw)
To: Tohiko Looka; +Cc: emacs-erc, 59135
Hi Tohiko,
Tohiko Looka <toh.looka@gmail.com> writes:
> When receiving large files with ERC-DCC I get the error
>
> ERC-DCC (erc-pack-int): packet too large
What version of Emacs and ERC is this? If you have the command
`erc-bug', please consider using it to prepare ERC bug reports in the
future.
> incessantly which makes Emacs unresponsive until eventually the IRC
> server connection is closed.
That sounds like a bug. The process should probably be killed before the
error is signaled.
> I believe this happens when the file size is larger than 2 or 4 GB
> which does not fit in an integer.
Right. Desktops were mostly 32 bits back when DCC was a thing, and the
protocol reflects that.
> This causes a failure when the function erc-dcc-get-filter tries to
> send back the number of received bytes.
>
> Is there a way around this?
It depends on the file sender. If they're actually verifying your
reports, then you're out of luck because who's to say how reporting
should proceed on either side, post-overflow? IOW, if the reporter (file
receiver) wants to send 5- or 8-byte reports or wrap back around, that
needs to be coordinated beforehand with the other party (the file
sender).
Now, there *is* a variation of the protocol that ERC doesn't officially
support but that it has nevertheless partially implemented (a flavor of,
anyway). Check with the sender and see if they're operating in so-called
"turbo" mode (sometimes called TSEND). I've heard that some senders
enable it implicitly but don't announce that fact (if they're even aware
of having done so).
Regardless, if ERC thinks it's in a turbo-aware conversation, it won't
send reports at all. You can toggle this behavior with the -t switch
starting in Emacs 29.1. See the command usage in the ;;; Commentary
section in erc-dcc.el [1] and maybe some related variables further down
[2]. There's also bug#54458 [3], which gave rise to that feature. Hope
that helps.
Thanks,
J.P.
[1] https://git.savannah.gnu.org/cgit/emacs.git/tree/lisp/erc/erc-dcc.el?id=1f29ee2d#n46
[2] https://git.savannah.gnu.org/cgit/emacs.git/tree/lisp/erc/erc-dcc.el?id=1f29ee2d#n979
[3] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=54458
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#59135: Receiving large files with ERC-DCC
2022-11-09 14:00 ` J.P.
@ 2022-11-09 14:23 ` Tohiko Looka
[not found] ` <CAPx46aSyu_dzR2QXP3PpKUSgqm1fMbQAVetEaA4aLAcMOhU-dg@mail.gmail.com>
1 sibling, 0 replies; 4+ messages in thread
From: Tohiko Looka @ 2022-11-09 14:23 UTC (permalink / raw)
To: J.P.; +Cc: emacs-erc, 59135
Hi J.P.,
> What version of Emacs and ERC is this? If you have the command
> `erc-bug', please consider using it to prepare ERC bug reports in the
> future.
A sorry, I didn't realize erc had its own bug reporting mechanism.
I also should have included that I am using Emacs 28.1 the ERC 5.4.
> Regardless, if ERC thinks it's in a turbo-aware conversation, it won't
> send reports at all. You can toggle this behavior with the -t switch
> starting in Emacs 29.1. See the command usage in the ;;; Commentary
> section in erc-dcc.el [1] and maybe some related variables further down
> [2]. There's also bug#54458 [3], which gave rise to that feature. Hope
> that helps.
I will try this.Thanks
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#59135: Receiving large files with ERC-DCC
[not found] ` <CAPx46aSyu_dzR2QXP3PpKUSgqm1fMbQAVetEaA4aLAcMOhU-dg@mail.gmail.com>
@ 2023-05-22 4:21 ` J.P.
0 siblings, 0 replies; 4+ messages in thread
From: J.P. @ 2023-05-22 4:21 UTC (permalink / raw)
To: Tohiko Looka; +Cc: emacs-erc, 59135-done
Tohiko Looka <toh.looka@gmail.com> writes:
> Hi J.P.,
>
>> What version of Emacs and ERC is this? If you have the command
>> `erc-bug', please consider using it to prepare ERC bug reports in the
>> future.
> A sorry, I didn't realize erc had its own bug reporting mechanism.
> I also should have included that I am using Emacs 28.1 the ERC 5.4.
>
>> Regardless, if ERC thinks it's in a turbo-aware conversation, it won't
>> send reports at all. You can toggle this behavior with the -t switch
>> starting in Emacs 29.1. See the command usage in the ;;; Commentary
>> section in erc-dcc.el [1] and maybe some related variables further down
>> [2]. There's also bug#54458 [3], which gave rise to that feature. Hope
>> that helps.
>
> I will try this.Thanks
Closing this bug since there hasn't been any action in six months or so.
If the problem persists, please let me know, and I'll reopen it. Thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-05-22 4:21 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-08 17:44 bug#59135: Receiving large files with ERC-DCC Tohiko Looka
2022-11-09 14:00 ` J.P.
2022-11-09 14:23 ` Tohiko Looka
[not found] ` <CAPx46aSyu_dzR2QXP3PpKUSgqm1fMbQAVetEaA4aLAcMOhU-dg@mail.gmail.com>
2023-05-22 4:21 ` J.P.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.