I tried it and I found, that aimp-web-ctl (unfortunately) does not support HTTP 1.1.igvk wrote:Isn't it possible to set up persistent connection to AIMP?
O.K., the protocol is HTTP, but is it possible to use an already established TCP connection without closing it (and use HTTP/1.1 persistent connection)?
Or aimp-web-ctl doesn't support it?
You can try it yourself.
Use telnet client and connect to the address localhost:38475
Then enter the command HEAD / HTTP/1.1 (and "Enter" key twice).
You will see, that the connection is immediately interrupted.
For a server that supports HTTP 1.1, does not interrupt the connection (I tried it with my plugin HTTP explorer).
With the plugin aimp-web-ctl is no difference between HTTP 1.0 and HTTP 1.1.
That is obvious. It is polling.igvk wrote:I noticed that the problem with never-ending frequent connections is due to the fact that events triggering options were set.
I have switched them all off, and now it doesn't show itself the way it used to.
If (EG) plugin does not need to know the status AIMP, then there is no reason to connect to it.
Pako
