Multiple JSON requests to server

General discussions and questions.
Post Reply
Posts: 1
Joined: Mon Sep 14, 2020 8:03 pm

Multiple JSON requests to server

Post by mlesin »

Is it possible to communicate with a server with JSON API without setting up a new socket for each request?
For now, I'm opening a socket to server using 51000 port, sending a JSON request, like this:

Code: Select all

        "type": "renders",
        "mask": "myhost"
Receiving whole response successfully, but when I try to send this request again using the same open socket, I'm getting "Connection reset by peer"
What am I missing here?
(Afanasy 2.3.0)
User avatar
Site Admin
Posts: 732
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev

Re: Multiple JSON requests to server

Post by timurhai »

No it isn't possible.
You should connect to server for each request.
Timur Hairulin
CGRU 3.2.0, Ubuntu 20.04 LTS, MS Windows 10 (clients only).
Post Reply