Skip to content

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

@jamescrosswell

Description

@jamescrosswell

Originally posted by @jamescrosswell in #3792

macOS

On macOS, 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:

Metadata

Metadata

Labels

BugSomething isn't working

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions