Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

webui: fix http_serve_file() for FreeBSD #1125

Merged
merged 1 commit into from
Jun 7, 2018
Merged

webui: fix http_serve_file() for FreeBSD #1125

merged 1 commit into from
Jun 7, 2018

Conversation

nomatter2k
Copy link
Contributor

This patch fixes two major problems of FreeBSD port of tvheadend:

  1. very high CPU usage while streaming a recored program
  2. unable to stream the recorded program beyond 128MB.

Unlike Linux sendfile(), FreeBSD sendfile() requires an explicit
file offset, and return value must be checked to catch any error
occurred. (i.e., closed connection)

Patch tested with the latest FreeBSD port of tvheadend-4.2.6.

This patch fixes two major problems of FreeBSD port of tvheadend:

1. very high CPU usage while streaming a recored program
2. unable to stream the recorded program beyond 128MB.

Unlike Linux sendfile(), FreeBSD sendfile() requires an explicit
file offset, and return value must be checked to catch any error
occurred. (i.e., closed connection)

Patch tested with the latest FreeBSD port of tvheadend-4.2.6.
@perexg perexg merged commit a9069b5 into tvheadend:master Jun 7, 2018
@nomatter2k
Copy link
Contributor Author

nomatter2k commented Jun 8, 2018 via email

uqs pushed a commit to freebsd/freebsd-ports that referenced this pull request Jun 13, 2018
1. very high CPU usage while streaming a recored program
2. unable to stream the recorded program beyond 128MB.

Unlike Linux sendfile(), FreeBSD sendfile() requires an explicit
file offset, and return value must be checked to catch any error
occurred. (i.e., closed connection)

Obtained from:	tvheadend/tvheadend#1125
Submitted by:	Jongsung Kim <jongsung.kim@gmail.com>


git-svn-id: svn+ssh://svn.freebsd.org/ports/head@472317 35697150-7ecd-e111-bb59-0022644237b5
uqs pushed a commit to freebsd/freebsd-ports that referenced this pull request Jun 13, 2018
1. very high CPU usage while streaming a recored program
2. unable to stream the recorded program beyond 128MB.

Unlike Linux sendfile(), FreeBSD sendfile() requires an explicit
file offset, and return value must be checked to catch any error
occurred. (i.e., closed connection)

Obtained from:	tvheadend/tvheadend#1125
Submitted by:	Jongsung Kim <jongsung.kim@gmail.com>
Jehops pushed a commit to Jehops/freebsd-ports-legacy that referenced this pull request Jun 13, 2018
1. very high CPU usage while streaming a recored program
2. unable to stream the recorded program beyond 128MB.

Unlike Linux sendfile(), FreeBSD sendfile() requires an explicit
file offset, and return value must be checked to catch any error
occurred. (i.e., closed connection)

Obtained from:	tvheadend/tvheadend#1125
Submitted by:	Jongsung Kim <jongsung.kim@gmail.com>


git-svn-id: svn+ssh://svn.freebsd.org/ports/head@472317 35697150-7ecd-e111-bb59-0022644237b5
swills pushed a commit to swills/freebsd-ports that referenced this pull request Jun 13, 2018
1. very high CPU usage while streaming a recored program
2. unable to stream the recorded program beyond 128MB.

Unlike Linux sendfile(), FreeBSD sendfile() requires an explicit
file offset, and return value must be checked to catch any error
occurred. (i.e., closed connection)

Obtained from:	tvheadend/tvheadend#1125
Submitted by:	Jongsung Kim <jongsung.kim@gmail.com>


git-svn-id: svn+ssh://svn.freebsd.org/ports/head@472317 35697150-7ecd-e111-bb59-0022644237b5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants