How to increase allowed maximum file size over SignalR within an Azure Function C#

65 Views Asked by At

So I have come across a number of posts suggesting adding the following:

Stackoverflow suggestion 1

services.AddSignalR(o =>
            {
                o.EnableDetailedErrors = true;
                o.MaximumReceiveMessageSize = 10240;
            });

and adding the following:

Stackoverflow suggestion 2

GlobalHost.Configuration.MaxIncomingWebSocketMessageSize = null;

But none of these seemed to make a difference. I have a situation where its seconds and then fails. Multiple small files work fine though.

I tried increasing the server and handshake time outs on the hubconnection to 5 min as well, but nothing seems to work when trying to transfer over large files.

Is there anyone out there that has experienced the same and found a way around this ?

0

There are 0 best solutions below