Socket disconnects when sending large data? #579

Closed
opened 2026-01-29 16:43:20 +00:00 by claunia · 2 comments
Owner

Originally created by @nekiro on GitHub (Oct 25, 2020).

Originally assigned to: @GregorBiswanger on GitHub.

Electron version latest from nuget.
Net Core 3.1
NodeJs v12.19.0

Debug

When sending larger data through socket (Electron.IpcMain.Send), in my case array with 100 indexes every index has Item object in it, item object has like 20 properties. I think it also happens if I send small array or long string

It even happens for single string atm, what's the problem?

Steps to Reproduce:

  1. Electron.IpcMain.Send(mainWindow, "any", new string[] array { "?", "lol"});

image

Originally created by @nekiro on GitHub (Oct 25, 2020). Originally assigned to: @GregorBiswanger on GitHub. Electron version latest from nuget. Net Core 3.1 NodeJs v12.19.0 <!-- What target are you building for? --> Debug When sending larger data through socket (Electron.IpcMain.Send), in my case array with 100 indexes every index has Item object in it, item object has like 20 properties. I think it also happens if I send small array or long string It even happens for single string atm, what's the problem? Steps to Reproduce: 1. Electron.IpcMain.Send(mainWindow, "any", new string[] array { "?", "lol"}); 2. ![image](https://user-images.githubusercontent.com/14142246/97103926-f0cd3400-16af-11eb-8788-848da617118a.png)
claunia added the bug label 2026-01-29 16:43:20 +00:00
Author
Owner

@GregorBiswanger commented on GitHub (Oct 25, 2020):

The socket connection is then restored normally.

I'm currently working on better communication in the background.

@GregorBiswanger commented on GitHub (Oct 25, 2020): The socket connection is then restored normally. I'm currently working on better communication in the background.
Author
Owner

@nekiro commented on GitHub (Oct 27, 2020):

@GregorBiswanger that's great, could you point me to the code, which is responsible for these disconnects? I would maybe try to contribute too.

@nekiro commented on GitHub (Oct 27, 2020): @GregorBiswanger that's great, could you point me to the code, which is responsible for these disconnects? I would maybe try to contribute too.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#579