rejetto forum

SHOWING multiple requests for a movie via HTTP connection

Guest · 14 · 9016

0 Members and 1 Guest are viewing this topic.

Dmitry Russia

  • Guest
I am trying to access to this HTTP server by STB FS6 (Telsey Telecommunications, Italy) using http://fmp.telsey.ru (FreeMiddlewarePlus). It is cool and it allows to see HD movies on big TV Screen. This HTTP server is VERY COOL but! :

I checked "do not log" movies directory but it is showing connections in the status bar.
HTTP Stream is always happens with a lot of connections.
This server cannot timely serve all the request and stream is broken in one minute.
There are a lot of connections not closed in the status bar.

So for now it cannot serve professional STB players. VERY VERY pitty.

Another big missing feature is to listen request on multiple ports.
Because it is a good idea to separate requests for listing files and for streaming HTTP movies.

Thanks a lot!

--Dmitry





Dmitry Russia

  • Guest
I mean it could serve of course but it does not because there are a lot of time of CPU for SHOWING multiple requests for a movie via HTTP connection. Most probably it is overloaded with this job!

Thanks again.

-Dmitry


Offline Mars

  • Operator
  • Tireless poster
  • *****
    • Posts: 2059
    • View Profile
@ Dmitry Russia
you can register you on the forum if you want to post several times, it will more easy to you, no more security to post. ;)

Quote
Another big missing feature is to listen request on multiple ports.

You can launch more of one instance of hfs by using a different port of listening every time, it is necessry for it to save the vfs and the options in files on disk, you can use a script to launch hfs in several copies by using the following options as example.

Quote from: wiki
http://www.rejetto.com/wiki/index.php/HFS:_Command_line_parameters

-c <INI COMMANDS>
Warning: this feature is available only since version 2.3
You can pass ini commands directly from the command line. If only one instance is enabled, this is the easy way to command HFS from the command line.

This is an example to switch off the server:
hfs -c active=no

To specify many commands, separate them by \n.

Example:
hfs -c active=yes\nport=8080


if HFS is already running, the only one instance must be disabled, and save options to file

runhfs.bat
c:\hfs\hfs.exe -c active=yes\nport=80
c:\hfs\hfs.exe -d 300 -c active=yes\nport=8080\nauto-save-vfs=no\nsave-options-on-exit=no\nauto-save-vfs-every=0\nauto-save-cfg-every=0
c:\hfs\hfs.exe -d 600 -c active=yes\nport=7000\nauto-save-vfs=no\nsave-options-on-exit=no\nauto-save-vfs-every=0\nauto-save-cfg-every=0
......
every hfs .exe is launched every 30 second  (n*300*100ms) on different ports, with the same options and the same vfs,

only the first instance can overwrite options and the vfs.

If you change some items in the vfs you have to save it and close all process of hfs and launch runhfs.bat to use the new vfs in all instances

not tested, but must working ;)

Quote
Because it is a good idea to separate requests for listing files and for streaming HTTP movies.

see attached file:  "menu > limits" > checked  to prevent leeching and stop spiders.
« Last Edit: June 23, 2010, 11:50:52 PM by Mars »


Dmitry Russia

  • Guest
Mars, thank you for the advises. I was not able to run more than 1 instance of HFS.

The log during HTTP Streaming from Apache and nginx below. Log from HFS attached in JPG file.


Apache log during streaming
192.168.5.15 - - [24/Jun/2010:11:50:51 +0400] "GET /podcast/AMABILI%20RESTI.MOV HTTP/1.1" 206 131073
192.168.5.15 - - [24/Jun/2010:11:50:51 +0400] "GET /podcast/AMABILI%20RESTI.MOV HTTP/1.1" 206 131073
192.168.5.15 - - [24/Jun/2010:11:50:51 +0400] "GET /podcast/AMABILI%20RESTI.MOV HTTP/1.1" 206 131073
192.168.5.15 - - [24/Jun/2010:11:50:51 +0400] "GET /podcast/AMABILI%20RESTI.MOV HTTP/1.1" 206 131073
192.168.5.15 - - [24/Jun/2010:11:50:51 +0400] "GET /podcast/AMABILI%20RESTI.MOV HTTP/1.1" 206 131073
192.168.5.15 - - [24/Jun/2010:11:50:51 +0400] "GET /podcast/AMABILI%20RESTI.MOV HTTP/1.1" 206 131073

nginx log during streaming
192.168.5.15 - - [24/Jun/2010:11:45:17 +0400] "GET /podcast/1941.mov HTTP/1.1" 206 131073 "-" "Telsey STB"
192.168.5.15 - - [24/Jun/2010:11:45:17 +0400] "GET /podcast/1941.mov HTTP/1.1" 206 131073 "-" "Telsey STB"
192.168.5.15 - - [24/Jun/2010:11:45:17 +0400] "GET /podcast/1941.mov HTTP/1.1" 206 131073 "-" "Telsey STB"
192.168.5.15 - - [24/Jun/2010:11:45:17 +0400] "GET /podcast/1941.mov HTTP/1.1" 206 131073 "-" "Telsey STB"
192.168.5.15 - - [24/Jun/2010:11:45:17 +0400] "GET /podcast/1941.mov HTTP/1.1" 206 131073 "-" "Telsey STB"
192.168.5.15 - - [24/Jun/2010:11:45:17 +0400] "GET /podcast/1941.mov HTTP/1.1" 206 131073 "-" "Telsey STB"



Offline Mars

  • Operator
  • Tireless poster
  • *****
    • Posts: 2059
    • View Profile
@rejetto

one change to do in the default tpl

[+link]
<td style="text-align:center;">link
<td colspan='2'>


 ;)


Offline D2emon

  • Occasional poster
  • *
    • Posts: 5
    • View Profile
Is it enough to donate $2 to solve the issue I am talking about? :)

I like this HTTP server for sure but now it is useless for me, sorry....

Before I was a guest Dmitry Russia...


Offline Mars

  • Operator
  • Tireless poster
  • *****
    • Posts: 2059
    • View Profile
"solve the issue" come with time, Hfs evolve according to our spare time, when a problem is enough important, a new version sometimes goes out, but it is treated with the same priority as the other requests, if a solution is quickly found it is posted, otherwise it is necessary to wait for an answer on the forum.

sorry can't solve immediatly ;)

can you make some tests with options as attached png, and report ;)

« Last Edit: June 25, 2010, 08:35:15 PM by Mars »


Offline D2emon

  • Occasional poster
  • *
    • Posts: 5
    • View Profile
3, 10 does not help... :(
httpd is becoming crazy from such streams... :(

so for movies library it is not ready.


Offline D2emon

  • Occasional poster
  • *
    • Posts: 5
    • View Profile
BTW, if you want to see what is going on please give me a link to movie on your http server. :)


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
hi Dmitry. HFS is not designed to be a high performance server, and it probably never will, I'm sorry.
« Last Edit: June 28, 2010, 01:44:36 PM by rejetto »


Offline D2emon

  • Occasional poster
  • *
    • Posts: 5
    • View Profile
Hi Massimo,

I do understand that this is a personal home web-server for P2P connections.

This is exactly what could be very interested for users who are using multimedia stations to see their own libraries on TV instead of PC.

The performance of your HTTPD is much enough to handle several Video Streams even to allow friends to watch your video at home!

The problem is that your server even with LOG switched off is continue to log in Status Panel.
Logging in this case is taking a lot of CPU resources.

Maybe another reason is that you did not look much inside Partial Content Retrieving (206) ?

Thanks you, Dmitry


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
the status panel is not the log. What if you hide it?

Maybe another reason is that you did not look much inside Partial Content Retrieving (206) ?

i can't imagine what could be wrong with the currentl 206 support. If you have any idea, suggest.

did you try enabling the "prevent leeching" ?


Offline D2emon

  • Occasional poster
  • *
    • Posts: 5
    • View Profile
I tried many things but the best case I believe is to try to read some Video from your HTTPD. :)
You will see it for yourself that it becomes crazy with overloading Status panel. It's getting growing more and more and then HFS cannot process any request and VIDEO is stopping showing on the TV.

Just give me the link and I will switch on my Telsey Box. :)


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile