Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Envelopes with oversized attachments getting stuck in __processing (Possible regression) #3804

Open
jamescrosswell opened this issue Nov 30, 2024 · 0 comments

Comments

@jamescrosswell
Copy link
Collaborator

The following code results in a java.net.SocketException: Socket closed exception when processing the envelope:

.UseSentry(options =>
{
                // All the standard options
                const int mb = 1024 * 1024;
                options.MaxAttachmentSize = 80 * mb;
                options.SetBeforeSend((e, h) =>
                {
                    var random = new Random();
                    var byteArray = new byte[20 * mb];
                    random.NextBytes(byteArray);

                    h.AddAttachment(byteArray, $"twentymb.bin");

                    return e;
                });
}

Additionally, the envelope getting stuck in the __processing directory and preventing other envelopes from being sent. I think that is a problem in the .NET SDK and possibly a regression of:

Originally posted by @jamescrosswell in #3792

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant