Commit graph

5185 commits

Author SHA1 Message Date
Thulinma
984a422279 Again, fixed hooks. 2012-08-26 23:16:57 +02:00
Thulinma
18a1a386df Do not send Content-Length headers when they are zero. 2012-08-26 22:18:26 +02:00
Thulinma
607a41c443 Make HTTP proxy insta-murder connections that need to be re-used (happens when progressive makes two connections from one user agent for some reason - kills the oldest connections for the newest one). 2012-08-26 22:17:51 +02:00
Thulinma
84db148405 Fix HTTP::Parser to no longer send empty headers. 2012-08-26 21:19:48 +02:00
Thulinma
469d810d6b Update HTTP proxy timeout from 10s to 20s. 2012-08-26 21:19:16 +02:00
Thulinma
0947512ff6 Fixed hook creator to also work when pulling. 2012-08-26 21:18:58 +02:00
Thulinma
516c8bf091 Fixed hook creator to also work when pulling. 2012-08-26 21:18:40 +02:00
Thulinma
a15ea64e4e Fix controller keeping stats for deleted streams - now deletes stats 2 minutes after receiving the last updates. 2012-08-26 20:46:03 +02:00
Thulinma
0e0ecb1bdf Stripped some unused code from Socket::Connection and FLV::Tag, made some Socket::Connection methods private. 2012-08-26 20:08:16 +02:00
Thulinma
afefe24578 Fix IP addresses for HTTP connectors, update all code to only use non-deprecated libmist calls. 2012-08-26 19:58:53 +02:00
Peter Wu
b141b4058e conn_http: prevent 100% CPU usage 2012-08-25 23:10:43 +02:00
Thulinma
9ca532523c Typo fix. 2012-08-25 22:16:05 +02:00
Thulinma
fd2211f85f Drop the parsed query string from url for incoming HTTP data. 2012-08-25 22:15:23 +02:00
Thulinma
95a11c88d5 Add host overwriting functionality to Socket::Connection. 2012-08-25 22:07:15 +02:00
Peter Wu
becd4715c3 conn_http_progressive: remove unused vars 2012-08-25 19:51:30 +02:00
Peter Wu
90e1ba7308 buffer_stream: do not crash on shutdown
When destructing the users, they attempt to drop the ring they own. This works
by checking Strm's list of rings. But when Strm is destructed, all rings are
deleted as well which results in a segfault.
2012-08-25 19:49:19 +02:00
Peter Wu
689eb74945 Fix compiler warnings (mainly signed/unsigned comparisons) 2012-08-25 19:21:58 +02:00
Thulinma
e6179904c7 Fix CPU usage problems in HTTP connector. 2012-08-25 13:14:08 +02:00
Thulinma
9b3037d0e4 Added basic pretty-printing to MP4 boxes. 2012-08-24 17:14:27 +02:00
Thulinma
fb2d022800 Added timestamp rewriting to HTTP Dynamic for live streams. 2012-08-24 17:13:06 +02:00
Thulinma
ca0fd8a641 Fix Util::TerminationNotifier deadlock when calling malloc() inside a signal handler. 2012-08-24 15:09:35 +02:00
Thulinma
86a7d74768 Fixed a few minor typing mistakes in HTTP Dynamic. 2012-08-24 14:25:58 +02:00
Thulinma
622b3ca100 Fix handling of live/recorded in bootstrap generation. 2012-08-24 12:13:15 +02:00
Thulinma
5e640c09b9 Remove bootstrap generator from MP4 - this is now part of DMS. 2012-08-24 12:09:46 +02:00
Thulinma
3949f6282c Added support for VoD manifests and fix HTTPDynamic loading. 2012-08-24 12:09:19 +02:00
Thulinma
29f6d53595 Updated everything to support the changeover from DTSC::DTMI -> JSON::Value. 2012-08-24 11:33:16 +02:00
Thulinma
a6b072988c Added toNetPacked() to JSON, removed DTSC::DTMI completely (now superseded by JSON). 2012-08-24 11:32:02 +02:00
Thulinma
4ac7c54698 Updated mp4 to parse some information from JSON-style metadata, guesses values if not present. 2012-08-23 17:06:25 +02:00
Thulinma
48bf3d189a Half-updated flv_tag with JSON metadata support. 2012-08-23 17:05:53 +02:00
Thulinma
75a420db2a Fixed DTSC::File (now actually works) and updated DTSC metadata information in the documentation. 2012-08-23 17:05:32 +02:00
Thulinma
b54ee2dcd2 Converted to new libmist JSON support, added dtscfix for metadata rewriting. 2012-08-23 17:04:43 +02:00
Erik Zandvliet
0ac64dd6cb FTP Convert to LibMist 2012-08-23 12:06:26 +02:00
Thulinma
8a9d4d6ee1 First version of DTSC::File for easy management of DTSC files. 2012-08-23 11:09:10 +02:00
Thulinma
0c5f449963 Added DTMI support to JSON library. 2012-08-23 11:09:10 +02:00
Thulinma
61abc0e0a1 Removed useless metadata from HTTP dynamic. 2012-08-21 17:21:49 +02:00
root
52cb6cd9df Fix connections not being moved from conn to log. 2012-08-21 17:17:52 +02:00
Niels
74b02bafe2 several server.html bugs, commented all js 2012-08-21 16:16:59 +02:00
Thulinma
e69d2b3954 Fixed buffer not moving users from curr to log, fixed controller randomly crashing ^_^ 2012-08-21 15:23:47 +02:00
Peter Wu
36c7eed7e3 procs: fix leakage of pids in child process 2012-08-15 11:49:21 +02:00
Peter Wu
fa5d27b085 procs: add support for easy redirection to dev null
Simply set a NULL pointer for a fd, StartPiped will then take care of opening
/dev/null, redirecting fds to it and close it when necessary.
2012-08-15 11:49:21 +02:00
Peter Wu
b994bab6d2 Add new process function including fds
Based on BiPipe from MistPlayer branch

v2: fix dup2 of wrong fd, fix invalid fd debug print
2012-08-15 11:49:21 +02:00
Peter Wu
06167128bf Add process termination registration
Edited patch because of context change due to:
commit 28548f35b0
Author: Thulinma <jaron@vietors.com>
Date:   Tue Aug 14 20:53:05 2012 +0200

    Do not report part-termination of processes.
2012-08-15 11:48:23 +02:00
Thulinma
3f089117c7 Apply lekensteyn's workarounds from the DMS repository to prevent compiler warnings. 2012-08-15 03:03:05 +02:00
Thulinma
1c3b01a243 Added online status for connectors. 2012-08-15 02:34:41 +02:00
Thulinma
c978cf3ae6 Change uses of (long long int) and (std::string) into asInt() and asString() where appropiate. 2012-08-15 02:34:24 +02:00
root
bc4b6c6e08 Fix possible password security problem. 2012-08-14 22:51:04 +02:00
root
33fedd0939 Improve on controller logging. 2012-08-14 22:25:06 +02:00
Thulinma
a86051b319 Removed socket non-errors, added success message for opening listening sockets. 2012-08-14 20:53:32 +02:00
Thulinma
28548f35b0 Do not report part-termination of processes. 2012-08-14 20:53:05 +02:00
Thulinma
977a8617a2 Fix Config::activate to not check nonexistant options. 2012-08-14 20:42:35 +02:00