websocket problem

dadoo

Новичок
Регистрация
20.05.2022
Сообщения
8
Благодарностей
1
Баллы
3
Hello.
I use 6 templates with 10 thread each one.
I use 150 proxies for all of them.
My browser in zenno is CEF(chrome)
Sometimes my templates stop and when I go in critical logs I have this message below.
I don't know if the problem is :
- use of proxiesin parralel
- problem with CEF chrome

WhenI look for Xilium, I see this is about Chrome, but I don't know more.
Could you help me please ?

Thank you

Xilium.Crdtp.Client.CrdtpConnectionException: Reader faulted. ---> System.Net.WebSockets.WebSocketException: The remote party closed the WebSocket connection without completing the close handshake.
at System.Net.WebSockets.WebSocketBase.WebSocketOperation.<Process>d__19.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Net.WebSockets.WebSocketBase.<ReceiveAsyncCore>d__45.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Xilium.Crdtp.Client.CrdtpWebSocketConnection.Reader.<RunReadLoopAsync>d__2.MoveNext()
--- End of inner exception stack trace ---
System.Net.WebSockets.WebSocketException (0x80004005): The remote party closed the WebSocket connection without completing the close handshake.
at System.Net.WebSockets.WebSocketBase.WebSocketOperation.<Process>d__19.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Net.WebSockets.WebSocketBase.<ReceiveAsyncCore>d__45.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Xilium.Crdtp.Client.CrdtpWebSocketConnection.Reader.<RunReadLoopAsync>d__2.MoveNext()
 

VladZen

Administrator
Команда форума
Регистрация
05.11.2014
Сообщения
22 226
Благодарностей
5 844
Баллы
113
WebSocket error is a consequence, not a cause
need more details:
how do templates stop?
Are instances just hanging or closed?
Are there any errors in execution log?
 

dadoo

Новичок
Регистрация
20.05.2022
Сообщения
8
Благодарностей
1
Баллы
3
Hello, I found the solution thank you. I will be more preceize next time
thank you
 

VladZen

Administrator
Команда форума
Регистрация
05.11.2014
Сообщения
22 226
Благодарностей
5 844
Баллы
113

dadoo

Новичок
Регистрация
20.05.2022
Сообщения
8
Благодарностей
1
Баллы
3
Hello. I didn'it find a good solution. I decided to duplicate my templates. Now each template run individualy. One thread by template, not 11 threads for one template. It is not a perfect solution but I think it is better.
I used lists inside this template and I think multithreading is not working well if there is not synchronized lists etc.

I thougth multithreading would work like many instances of an object. I thought a list inside a template would be like a parameter inside a class and each thread could work, like an instance of object could work with its own parameter.

But it seems multithreading share lists of a template. So this problem did other problems with browser etc. Now, with one thread by tempate, it works like a charm until I learn to synchronize object for multithreading
 
  • Спасибо
Реакции: VladZen

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)