# Uncaught stackoverflow crashing server

**URL:** https://talk.remobjects.com/t/uncaught-stackoverflow-crashing-server/29383
**Category:** Remoting SDK
**Tags:** windows, csharp, dotnet, bug
**Created:** [February 2, 2024, 3:41pm UTC](https://talk.remobjects.com/t/uncaught-stackoverflow-crashing-server/29383 "2024-02-02T15:41:11Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![infokevercom](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/i/779978/32.png) [@infokevercom](https://talk.remobjects.com/u/infokevercom)
#### Post date: [February 2, 2024, 3:41pm UTC](https://talk.remobjects.com/t/uncaught-stackoverflow-crashing-server/29383/1 "2024-02-02T15:41:11Z")

</div>

In C# Dot Net 7, Rem Objects 10.0.0.1559

I am encountering a server crash caused by a stack overflow when sending a sufficiently large stream, RemObjects.SDK.Server.AsyncHttpServerWorker.ResponseBodyCallback seems to work via recursion, each recursion, a byte[4096] buffer is sent to the client. I seem to be running out of stack memory before my file is sent. From a quick visual inspection, I recurse through

ResponseBodyCallback-\>  
BeginWrite-\>  
IntBeginWrite-\>  
TaskAsyncResult-\>  
ResponseBodyCallback ^

5200 times before a stack overflow is triggered, causing the entire server to crash.  
5200 calls of BeginWrite, 4096 bytes per buffer, meaning this crashed at around 5200x4096=20MB (21,299,200 bytes) (\<- This is my interpretation, true if I understand the structure of AsyncHttpServerWorker .ResponseBodyCallback)

This could be solved with a different architecture of the ResponseBodyCallback function (A while loop, instead of a recursion)  
But equally importantly, this should be handled such as to not cause a full server crash.

Here is a part of the stack trace (With some of the recursions trimmed):

```auto
2024-02-01T10:02:43.898442100Z Stack overflow.
2024-02-01T10:02:43.905874900Z at System.Threading.Tasks.Task.FromResult[[System.Int32, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=xxxxxxxxxxxxxxxx]](Int32)
2024-02-01T10:02:43.905874900Z at RemObjects.SDK.Connection.IntBeginWrite(Byte[], Int32, Int32, System.AsyncCallback, System.Object)
2024-02-01T10:02:43.905874900Z at RemObjects.SDK.Connection.BeginWrite(Byte[], Int32, Int32, System.AsyncCallback, System.Object)
2024-02-01T10:02:43.905874900Z at RemObjects.SDK.Server.AsyncHttpServerWorker.ResponseBodyCallback(System.IAsyncResult)
2024-02-01T10:02:43.905874900Z at System.Threading.Tasks.TaskToApm+TaskAsyncResult..ctor(System.Threading.Tasks.Task, System.Object, System.AsyncCallback)
2024-02-01T10:02:43.906537200Z at RemObjects.SDK.Connection.IntBeginWrite(Byte[], Int32, Int32, System.AsyncCallback, System.Object)
2024-02-01T10:02:43.906698400Z at RemObjects.SDK.Connection.BeginWrite(Byte[], Int32, Int32, System.AsyncCallback, System.Object)
2024-02-01T10:02:43.906869300Z at RemObjects.SDK.Server.AsyncHttpServerWorker.ResponseBodyCallback(System.IAsyncResult)
2024-02-01T10:02:43.907165300Z at System.Threading.Tasks.TaskToApm+TaskAsyncResult..ctor(System.Threading.Tasks.Task, System.Object, System.AsyncCallback)
2024-02-01T10:02:43.907165300Z at RemObjects.SDK.Connection.IntBeginWrite(Byte[], Int32, Int32, System.AsyncCallback, System.Object)
2024-02-01T10:02:43.907165300Z at RemObjects.SDK.Connection.BeginWrite(Byte[], Int32, Int32, System.AsyncCallback, System.Object)
2024-02-01T10:02:43.907910500Z at RemObjects.SDK.Server.AsyncHttpServerWorker.ResponseBodyCallback(System.IAsyncResult)
2024-02-01T10:02:45.840557600Z at System.Threading.Tasks.TaskToApm+TaskAsyncResult..ctor(System.Threading.Tasks.Task, System.Object, System.AsyncCallback)
2024-02-01T10:02:45.840557600Z at RemObjects.SDK.Connection.IntBeginWrite(Byte[], Int32, Int32, System.AsyncCallback, System.Object)
2024-02-01T10:02:45.840557600Z at RemObjects.SDK.Connection.BeginWrite(Byte[], Int32, Int32, System.AsyncCallback, System.Object)
2024-02-01T10:02:45.840557600Z at RemObjects.SDK.Server.AsyncHttpServerWorker.ResponseBodyCallback(System.IAsyncResult)
2024-02-01T10:02:45.840557600Z at System.Threading.Tasks.TaskToApm+TaskAsyncResult..ctor(System.Threading.Tasks.Task, System.Object, System.AsyncCallback)
2024-02-01T10:02:45.840557600Z at RemObjects.SDK.Connection.IntBeginWrite(Byte[], Int32, Int32, System.AsyncCallback, System.Object)
2024-02-01T10:02:45.840557600Z at RemObjects.SDK.Connection.BeginWrite(Byte[], Int32, Int32, System.AsyncCallback, System.Object)
2024-02-01T10:02:45.843658100Z at RemObjects.SDK.Server.AsyncHttpServerWorker.ResponseBodyCallback(System.IAsyncResult)
2024-02-01T10:02:45.843658100Z at System.Threading.Tasks.TaskToApm+TaskAsyncResult..ctor(System.Threading.Tasks.Task, System.Object, System.AsyncCallback)
2024-02-01T10:02:45.843658100Z at RemObjects.SDK.Connection.IntBeginWrite(Byte[], Int32, Int32, System.AsyncCallback, System.Object)
2024-02-01T10:02:45.843658100Z at RemObjects.SDK.Connection.BeginWrite(Byte[], Int32, Int32, System.AsyncCallback, System.Object)
2024-02-01T10:02:45.843658100Z at RemObjects.SDK.Server.AsyncHttpServerWorker.ResponseBodyCallback(System.IAsyncResult)

<-Recursion start->

2024-02-01T10:02:45.843658100Z at System.Threading.Tasks.TaskToApm+TaskAsyncResult..ctor(System.Threading.Tasks.Task, System.Object, System.AsyncCallback)
2024-02-01T10:02:45.843658100Z at RemObjects.SDK.Connection.IntBeginWrite(Byte[], Int32, Int32, System.AsyncCallback, System.Object)
2024-02-01T10:02:45.843658100Z at RemObjects.SDK.Connection.BeginWrite(Byte[], Int32, Int32, System.AsyncCallback, System.Object)
2024-02-01T10:02:45.843658100Z at RemObjects.SDK.Server.AsyncHttpServerWorker.ResponseBodyCallback(System.IAsyncResult)
2024-02-01T10:02:45.843658100Z at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
2024-02-01T10:02:45.843658100Z at System.Threading.Tasks.AwaitTaskContinuation.RunCallback(System.Threading.ContextCallback, System.Object, System.Threading.Tasks.Task ByRef)
2024-02-01T10:02:45.843658100Z at System.Threading.Tasks.Task.RunContinuations(System.Object)
2024-02-01T10:02:45.843658100Z at System.Threading.Tasks.Task`1[[System.Int32, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].TrySetResult(Int32)
2024-02-01T10:02:45.843658100Z at System.Threading.Tasks.ValueTask`1+ValueTaskSourceAsTask+<>c[[System.Int32, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].<.cctor>b__4_0(System.Object)
2024-02-01T10:02:45.843658100Z at System.Net.Sockets.Socket+AwaitableSocketAsyncEventArgs.InvokeContinuation(System.Action`1<System.Object>, System.Object, Boolean, Boolean)
2024-02-01T10:02:45.843658100Z at System.Net.Sockets.Socket+AwaitableSocketAsyncEventArgs.OnCompleted(System.Net.Sockets.SocketAsyncEventArgs)
2024-02-01T10:02:45.843658100Z at System.Net.Sockets.SocketAsyncEventArgs+<>c.<.cctor>b__176_0(UInt32, UInt32, System.Threading.NativeOverlapped*)
2024-02-01T10:02:45.843658100Z at System.Threading.ThreadPoolTypedWorkItemQueue`2[[System.Threading.PortableThreadPool+IOCompletionPoller+Event, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Threading.PortableThreadPool+IOCompletionPoller+Callback, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].System.Threading.IThreadPoolWorkItem.Execute()
2024-02-01T10:02:45.843658100Z at System.Threading.ThreadPoolWorkQueue.Dispatch()
2024-02-01T10:02:45.843658100Z at System.Threading.PortableThreadPool+WorkerThread.WorkerThreadStart()

```

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [February 2, 2024, 6:12pm UTC](https://talk.remobjects.com/t/uncaught-stackoverflow-crashing-server/29383/3 "2024-02-02T18:12:25Z")

</div>

> [@infokevercom](#):
>
> This could be solved with a different architecture of the ResponseBodyCallback function (A while loop, instead of a recursion)  
> But equally importantly, this should be handled such as to not cause a full server crash.

Agreed on both accounts.

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [February 2, 2024, 6:13pm UTC](https://talk.remobjects.com/t/uncaught-stackoverflow-crashing-server/29383/4 "2024-02-02T18:13:58Z")

</div>

To have a more complete test case; what server channel are you using, and what does the method you’re calling look like – I assume a simple method that takes a `Binary` and then passing it a large one will suffice to reproduce this?

---

<div class="post-metadata">

### Author: ![RemObjectsSoftware](https://talk.remobjects.com/user_avatar/talk.remobjects.com/remobjectssoftware/32/15947_2.png) [@RemObjectsSoftware](https://talk.remobjects.com/u/RemObjectsSoftware)
#### Post date: [February 2, 2024, 6:14pm UTC](https://talk.remobjects.com/t/uncaught-stackoverflow-crashing-server/29383/5 "2024-02-02T18:14:43Z")

</div>

Logged as [bugs://D19426](https://www.remobjects.com/portal/bugs/?id=D19426).

---

<div class="post-metadata">

### Author: ![infokevercom](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/i/779978/32.png) [@infokevercom](https://talk.remobjects.com/u/infokevercom)
#### Post date: [June 28, 2024, 12:05pm UTC](https://talk.remobjects.com/t/uncaught-stackoverflow-crashing-server/29383/6 "2024-06-28T12:05:20Z")

</div>

That is correct, I don’t have it on hand anymore. But sending a binary of a sufficient size using a Service Method will indeed trigger this stack overflow (I’m running my server as an IpSuperHttpServerChannel if its relevant).

(Its still happening in version 10.0.0.1587)

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [June 28, 2024, 1:11pm UTC](https://talk.remobjects.com/t/uncaught-stackoverflow-crashing-server/29383/7 "2024-06-28T13:11:21Z")

</div>

> [@infokevercom](#):
>
> (I’m running my server as an IpSuperHttpServerChannel if its relevant).
> 
> (Its still happening in version 10.0.0.1587)

Thanx! I will try and reproduce the here, next week. I assume you have thje message size limited disabled/set higher than the binary your sending?

thanx,  
marc

---

<div class="post-metadata">

### Author: ![infokevercom](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/i/779978/32.png) [@infokevercom](https://talk.remobjects.com/u/infokevercom)
#### Post date: [June 28, 2024, 1:33pm UTC](https://talk.remobjects.com/t/uncaught-stackoverflow-crashing-server/29383/8 "2024-06-28T13:33:56Z")

</div>

Yes, you are correct. Limit is 200mb I believe (With timeouts disabled, and max message size disabled on the client, and on the server.

```
        IpTcpServerChannel ipTcpServerChannel = new IpTcpServerChannel();
        
        ipTcpServerChannel.TcpServer.TimeoutEnabled = false;
        ipTcpServerChannel.TcpServer.MaxLineLengthEnabled = false; 

```

I did notice that we are using IpTcpServerChannel now, instead of the IpSuperHttpServerChannel that we used to use before. I’m not certain if that will actually changed anything. Just communicating it for clarity.

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [June 28, 2024, 1:36pm UTC](https://talk.remobjects.com/t/uncaught-stackoverflow-crashing-server/29383/9 "2024-06-28T13:36:14Z")

</div>

Thanx.

> [@infokevercom](#):
>
> I did notice that we are using IpTcpServerChannel now, instead of the IpSuperHttpServerChannel that we used to use before. I’m not certain if that will actually changed anything. Just communicating it for clarity.

the same issue persists with the Tcp server as well, I take it?

—marc

---

<div class="post-metadata">

### Author: ![infokevercom](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/i/779978/32.png) [@infokevercom](https://talk.remobjects.com/u/infokevercom)
#### Post date: [June 28, 2024, 2:10pm UTC](https://talk.remobjects.com/t/uncaught-stackoverflow-crashing-server/29383/10 "2024-06-28T14:10:17Z")

</div>

So in my original post, I believe it was an IpTcpServerChannel.

However:

(Whats below is confusion, it is unclear to me is the summary)

The issue today is between two servers, (One running on IpSuperHttpServerChannel, the other running a IpTcpServerChannel), and call each others service methods (among other things they do).

The server with the IpSuperHttpServerChannel crashes with the stack overflow. But it might be crashing as a client replying to a service method like this:

```auto
 // This is running behind an IpTcpServerChannel
  [ServiceMethod]
        public void CreateReport(out Binary[] files, out Binary[] logs)

```

To the best of my knowledge, this issue is concerning the IpTcpServerChannel. However sadly its not fully clear to me at this point because I’m having issues with reproducing it currently. If I get more information I’ll let you know.

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [June 29, 2024, 1:34pm UTC](https://talk.remobjects.com/t/uncaught-stackoverflow-crashing-server/29383/11 "2024-06-29T13:34:07Z")

</div>

Hm now I am confused 😁.

even if both apps are servers, for the purpose of this, lets think of one of them as a client, as the crash, I presume, happens due to one app (the “client”) calling a method on the other (the “server”). It doesnt matter then that the “client” also acts as a server.

Which channel is the one receiving the call (and crashing due to the call) using? IpSuperHttpServerChannel?

---

<div class="post-metadata">

### Author: ![infokevercom](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/i/779978/32.png) [@infokevercom](https://talk.remobjects.com/u/infokevercom)
#### Post date: [July 24, 2024, 3:22pm UTC](https://talk.remobjects.com/t/uncaught-stackoverflow-crashing-server/29383/12 "2024-07-24T15:22:45Z")

</div>

Sorry for the slow responses. We were in the middle of other issues that needed attention.

The crash happened on the server with an IpSuperHttpServerChannel. As it responds to the message it received. I think if you remove the message size limit, I would hypothesis that the crash will happen regardless of the server channel (Assuming it also has this recursive method to sending the data).

> ResponseBodyCallback-\>  
> BeginWrite-\>  
> IntBeginWrite-\>  
> TaskAsyncResult-\>  
> ResponseBodyCallback ^

I believe this is the reason why it causes a server crash.

> Starting with the .NET Framework 2.0, you can’t catch a `StackOverflowException` object with a `try` /`catch` block, and the corresponding process is terminated by default.

> **[StackOverflowException Class (System)](https://learn.microsoft.com/en-us/dotnet/api/system.stackoverflowexception?view=net-8.0)**
>
> The exception that is thrown when the execution stack exceeds the stack size. This class cannot be inherited.

The Server in this case is not exiting (If it did, that’s not so bad, as in our environment at least it would simply restart). Instead it simply becomes unreachable.

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [July 24, 2024, 3:34pm UTC](https://talk.remobjects.com/t/uncaught-stackoverflow-crashing-server/29383/13 "2024-07-24T15:34:55Z")

</div>

> [@infokevercom](#):
>
> Sorry for the slow responses. We were in the middle of other issues that needed attention.

Same here; I ha meant to start ,looking into this issue regardless, but was pulled into other stuff. I’ll try to reproduce this and have a look, this week.

> [@infokevercom](#):
>
> I believe this is the reason why it causes a server crash.
> 
> > Starting with the .NET Framework 2.0, you can’t catch a `StackOverflowException` object with a `try` /`catch` block, and the corresponding process is terminated by default.  
> > [StackOverflowException Class (System) | Microsoft Learn](https://learn.microsoft.com/en-us/dotnet/api/system.stackoverflowexception?view=net-8.0)

Yes, that is expected.StackOverflows are always fatal, which makes Italy the mor important to avoid/fix them. 🙂

thanx,  
marc

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [July 24, 2024, 4:38pm UTC](https://talk.remobjects.com/t/uncaught-stackoverflow-crashing-server/29383/14 "2024-07-24T16:38:02Z")

</div>

Hmm. I’m afraid I cannot reproduce any error with a really simple case. I’m transfering a random ~45MB file that happened to me in my Downloads folder as Binary, and return its size.

```auto
    [ServiceMethod]
    method DoSomething(aBinary: Binary): String;
    begin
      result := aBinary.Length.ToString();
    end;

```

```auto
      var lBytes := File.ReadBytes("/Users/mh/Downloads/...");
      var lBinary := new RemObjects.SDK.Types.Binary(lBytes);
      try
        writeLn(new ServerAccess().Service1.DoSomething(lBinary));
      except
        on E: Exception do
          Log($"E {E}");
      end;

```

Can you have a look at the attached test case and see if either (a) you can run it and see if it works or fails for you (adjust the file path in the client) or (b) anything about the setup of the channel strikes you as that I missed something that might be crucial?

thanx,  
marc

[ServerApp.zip](https://talk.remobjects.com/uploads/short-url/ldcd3MQU0znLVL72EzXIPVGgPTJ.zip) (93.6 KB)

---

<div class="post-metadata">

### Author: ![infokevercom](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/i/779978/32.png) [@infokevercom](https://talk.remobjects.com/u/infokevercom)
#### Post date: [July 25, 2024, 12:31pm UTC](https://talk.remobjects.com/t/uncaught-stackoverflow-crashing-server/29383/15 "2024-07-25T12:31:47Z")

</div>

I reproduced it here, I think the key part that was missing is:

IpSuperHttpServerChannel serverChannel = new IpSuperHttpServerChannel();  
serverChannel.ServePlainHttpRequests = true;

Then connecting doing the call via http (or https).

[RemObjectsSizeTest.zip](https://talk.remobjects.com/uploads/short-url/Ab4KNIyx1Y1AjFYoRarQZAGvp6z.zip) (61.9 KB)

Here it is as code:

```auto
        public static int Main(string[] args)
        {
            Console.WriteLine("Starting service!");

            ApplicationServer server = new ApplicationServer("test", "test.test.test", "testServiceLibrary", "test test");

            Console.WriteLine("Server created! Opening port....");
            int portNumber = 9050;

            IpSuperHttpServerChannel serverChannel = new IpSuperHttpServerChannel();
            
            server.NetworkServer.ServerChannel = serverChannel;
            server.NetworkServer.Port = 9050;

            serverChannel.ServePlainHttpRequests = true;

            Console.WriteLine("Starting reporting micro service in port: " + portNumber);
            
            // Start another thread, that will call Service1.GetBigBinaryFile service method, after 3 seconds.
            var t = new System.Threading.Thread(() =>
            {
                System.Threading.Thread.Sleep(3000);
                Console.WriteLine("Calling GetBigBinaryFile service method...");
                
                ServerAccess serverAccess = new ServerAccess();
                var service1 = serverAccess.Service1;
                service1.GetBigBinaryFile(out var log);
                
                
                
                Console.WriteLine($"GetBigBinaryFile service method called! Size is {log.Length}");
            });
            
            t.Start();
            
            server.Run(args);
            return 0;
        }

```

Also in my ServerAccess I have:

```auto
        public ServerAccess()
        {
            this._serverUrl = "http://localhost:9050/bin";
            this._clientChannel = ClientChannel.ChannelMatchingTargetUri(this._serverUrl);
            BinMessage binMessage = new BinMessage();
            binMessage.EnforceMaxMessageSize = false;
            this._message = binMessage;
        }

```

This gives me the stack overflow issue before.

This is the GetBigBinaryFile btw:

```auto
        [ServiceMethod]
        public void GetBigBinaryFile(out Binary log)
        {
            // Make a 100MB binary file with random data
            byte[] data = new byte[100 * 1024 * 1024];
            new Random().NextBytes(data);
            log = new Binary(data);
        }

```

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [July 25, 2024, 12:43pm UTC](https://talk.remobjects.com/t/uncaught-stackoverflow-crashing-server/29383/16 "2024-07-25T12:43:56Z")

</div>

> [@infokevercom](#):
>
> serverChannel.ServePlainHttpRequests = true;
> 
> Then connecting doing the call via http (or https).

Ah, so the client uses plain HTTP?

Still works fine for me though, with `new IpHttpClientChannel(TargetUrl := "http://localhost:8099/bin");` ☹

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [July 25, 2024, 12:49pm UTC](https://talk.remobjects.com/t/uncaught-stackoverflow-crashing-server/29383/17 "2024-07-25T12:49:07Z")

</div>

> [@infokevercom](#):
>
> This is the GetBigBinaryFile btw:
> 
> ```auto
> [ServiceMethod]
> public void GetBigBinaryFile(out Binary log)
> {
> // Make a 100MB binary file with random data
> byte[] data = new byte[100 * 1024 * 1024];
> new Random().NextBytes(data);
> log = new Binary(data);
> }
> 
> ```

Oh you’re sending the big data BACK. I’ll test.i was sending it as an in parameter FROM the client.

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [July 25, 2024, 12:53pm UTC](https://talk.remobjects.com/t/uncaught-stackoverflow-crashing-server/29383/18 "2024-07-25T12:53:13Z")

</div>

> [@mh](#):
>
> Oh you’re sending the big data BACK. I’ll test.i was sending it as an in parameter FROM the client.

Still fine, here for me ☹

---

<div class="post-metadata">

### Author: ![infokevercom](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/i/779978/32.png) [@infokevercom](https://talk.remobjects.com/u/infokevercom)
#### Post date: [July 25, 2024, 12:53pm UTC](https://talk.remobjects.com/t/uncaught-stackoverflow-crashing-server/29383/19 "2024-07-25T12:53:53Z")

</div>

Yes you appear to be correct, it works when its IpHttpServerChannel.

The issue appears to be with IpSuperHttpServerChannel, we have different clients, and some (this is from vague memory, I can’t recall why) required ServePlainHttpRequests to be true.

I think it might have been javascript clients needing a non IpSuperHttpServerChannel connection? But for our other clients we did want the super connection.

Maybe I’m missing something about the function of ServePlainHttpRequests.  
But its still nice to know that this isn’t an issue with IpHttpServerChannel does not have this issue.

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [July 25, 2024, 12:55pm UTC](https://talk.remobjects.com/t/uncaught-stackoverflow-crashing-server/29383/20 "2024-07-25T12:55:11Z")

</div>

FWIW, your testcase also works for me:

```auto
~> Process ReportingService started, took 1.263.
~> Attaching to 7307
Starting service!
Server created! Opening port....
Starting reporting micro service in port: 9050
test test

Press Ctrl+C to terminate
Calling GetBigBinaryFile service method...
GetBigBinaryFile service method called! Size is 104857600

```

---

<div class="post-metadata">

### Author: ![infokevercom](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/i/779978/32.png) [@infokevercom](https://talk.remobjects.com/u/infokevercom)
#### Post date: [July 25, 2024, 12:56pm UTC](https://talk.remobjects.com/t/uncaught-stackoverflow-crashing-server/29383/21 "2024-07-25T12:56:18Z")

</div>

Oh, what version of rem objects are you using? Maybe this has already been addressed? (I’m currently on 10.0.0.1589)

[Next page](https://talk.remobjects.com/t/uncaught-stackoverflow-crashing-server/29383.md?page=2)
