1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-09-29 04:25:55 -04:00
Commit Graph

126 Commits

Author SHA1 Message Date
Philipp Schafft
42a9d82926 Fix: Typo 2022-03-12 10:04:19 +00:00
Philipp Schafft
979c336b5b Update: Added warning about JSON rendering 2022-03-11 19:04:38 +00:00
Philipp Schafft
1963031af0 Update: Do not reuse connections if they reached an error state 2022-03-11 12:45:48 +00:00
Philipp Schafft
b9a16b92f0 Update: Improved debug logging for connection and socket handling 2022-03-11 12:45:48 +00:00
Philipp Schafft
13fadf2b5b Update: Split client_get_reportxml() report generation into client_get_empty_reportxml(), and client_add_empty_incident() 2022-03-11 12:30:40 +00:00
Philipp Schafft
7e9bc9005c Update: Made global client limit warning easier to understand 2022-02-25 20:47:19 +00:00
Philipp Schafft
abc701a301 Fix: Make global_client_list extern outside of client.c 2021-07-26 19:47:46 +00:00
Philipp Schafft
5c504ec3dd Feature: Added mount history to client and attach the client on initial attach 2021-07-26 15:05:54 +00:00
Philipp Schafft
9e852dae50 Feature: Added a global client list 2021-07-26 15:05:04 +00:00
Philipp Schafft
55b6378023 Cleanup: Unified code sending responses to client some 2020-10-12 18:23:11 +00:00
Philipp Schafft
33c9d81cb6 Fix: Do not use wildcard addresses for hostname generation
See: #2365
2020-10-11 15:53:51 +00:00
Philipp Schafft
c900f0b18f Fix: Set xmlns for <icestats> in reports 2020-10-10 20:59:38 +00:00
Philipp Schafft
1666b478a1 Update: Only set namespace for reportxml if not used for XSLT 2020-10-10 20:59:37 +00:00
Philipp Schafft
2130a80f70 Update: Changed xml2json_render_doc_simple's signature 2020-10-10 20:59:36 +00:00
Philipp Schafft
b44df0da76 Feature: Support JSON mapping for all reportxml based outputs 2020-10-10 20:59:36 +00:00
Philipp Schafft
12806c0853 Update: Added client_protocol_from_string() and client_protocol_to_string() 2020-10-03 18:35:40 +00:00
Philipp Schafft
47dd475f12 Feature: Only show selected mounts in status display 2020-10-02 11:38:39 +00:00
Marvin Scholz
0c3da2df86 Cleanup: Simplify client_complete
Instead of using a "have" variable which makes it a bit confusing
to understand whats going on, use a do {} while (0) and break from it
instead.
2020-04-19 03:43:27 +02:00
Philipp Schafft
2ffaa92ea6 Fix: Fixed two double-unlock errors 2020-02-14 14:05:01 +00:00
Philipp Schafft
6ca6283cb4 Fix: Fixed invalid locking.
* listensocket_get_listener() must always be called with a matching call
  to listensocket_release_listener
* No ticket for this, but may be related to #2372.
* Found an reported by Xogium on IRC.

See: #2372
2019-11-22 14:48:49 +00:00
Philipp Schafft
1b94dea420 Update: Improved connecting-the-dots regarding clients and object IDs 2019-06-26 08:23:29 +00:00
Philipp Schafft
3761582ab8 Update: Mark a few developer level debugging messages as such 2019-05-28 07:55:18 +00:00
Philipp Schafft
de4fdf6656 Fix: Corrected check for return value of tls_got_shutdown() 2018-12-24 16:29:22 +00:00
Philipp Schafft
7fdc9ed11f Fix: Permit HTTP keep-alive for report XML based replys 2018-12-17 08:51:25 +00:00
Philipp Schafft
825f92d6e2 Feature: Support HTTP keep-alive for SOURCE connections if they give us a content-length (useful for pokes) 2018-12-17 08:46:52 +00:00
Philipp Schafft
df96dcbb6c Update: Announce ourself as HTTP/1.1 in HTTP upgrade 2018-11-13 08:54:06 +00:00
Philipp Schafft
143a8b717f Fix: Send final reply to client on HTTP upgrade
Closes: #2356
2018-11-13 08:51:02 +00:00
Philipp Schafft
a192f696c3 Fix: Corrected reported Allow:-header (mostly for 204-responses) 2018-10-26 08:05:45 +00:00
Marvin Scholz
2bb49deeb0 Fix: Add missing log message arguments
Found with lgtm.com
2018-10-17 13:35:34 +00:00
Philipp Schafft
a242f0f77b Update: Replaced reportxml_new() and reportxml_database_new() 2018-10-11 08:58:22 +00:00
Philipp Schafft
212ef5bb8f Cleanup: Use client_set_queue() and only use it once in client_destroy() 2018-09-19 14:39:19 +00:00
Philipp Schafft
4d7a60d588 Feature: Added basic support for auth backends to manipulate the client 2018-09-19 13:32:58 +00:00
Philipp Schafft
fe948bffea Update: Make client's URI part of it's object 2018-09-13 12:44:57 +00:00
Philipp Schafft
d0efb73a7b Feature: Also report loaded modules in report XML 2018-08-08 14:10:08 +00:00
Philipp Schafft
51712ebb2a Feature: Provide a unified interface to get an basic report 2018-08-08 14:10:08 +00:00
Philipp Schafft
cdd09669fa Feature: Added some more useful client fast events 2018-08-08 14:05:41 +00:00
Philipp Schafft
08cf0c1233 Feature: Emit a range of basic connection and client events 2018-08-08 14:05:41 +00:00
Philipp Schafft
648947fe44 Cleanup: Provided connection_send_bytes() to avoid direct access to con->send() 2018-07-27 10:07:18 +00:00
Philipp Schafft
75314c2b34 Fix: Corrects setup of client_t in client mode.
Closes: #2336
2018-07-20 11:41:39 +00:00
Philipp Schafft
c40d12a1c7 Update: Moved _update_client_request_body_length() into new client_complete() 2018-07-20 11:41:37 +00:00
Philipp Schafft
7742bf0a21 Fix: Report correct listen URL to client.
The URL is constructed considering Protocol, TLS Mode, Host, and Port.

This considers:
 - The Host:-header as provided by the client,
 - The effective listensocket of the client,
 - Global configuration.

This works for:
 - Playlist generation,
 - Admin authed playlist generation,
 - Stats based XSLT.

It also unifies code:
 - Default stats values.

Not yet included:
 - YP requests.
2018-06-30 13:12:30 +00:00
Philipp Schafft
5490120d4d Update: Rewrote listen socket handling code comepletly.
This moves all the listen socket code into a nice and abstracting file.

Notes:
* Altering listen socket setup does not yet work on config reload.
  (Did it ever work?)
* Server will start with no listen sockets. (There are unconfirmed
  rumours it sometimes(?) did before.) This is to be re-implemented
  in another commit. It can also be improved to work allow checking
  on reload or other config changes.
* For slave connections the server address is now checked against
  the allow/deny-IP list.
2018-06-30 13:10:08 +00:00
Philipp Schafft
1a426f7f81 Cleanup: Renamed *_TRANSFORMED* to *_HTML* 2018-06-29 15:25:12 +00:00
Philipp Schafft
6168573e86 Feature: Render error messages via Report XML and XSLT 2018-06-27 16:07:21 +00:00
Philipp Schafft
7fadb6ce86 Feature: Added function to send XML Report to client 2018-06-27 15:54:31 +00:00
Philipp Schafft
b8ceef2425 Fix: Fixed some compiler warnings 2018-06-19 13:44:07 +00:00
Philipp Schafft
bde88f82ae Update: Added debug level logging for client slurping 2018-06-19 13:44:07 +00:00
Philipp Schafft
1c7329cfbf Feature: Added some client request body slurping helpers 2018-06-19 13:44:07 +00:00
Philipp Schafft
b0c7da36a0 Fix: Fixed HTTP/1.1 pipelineing 2018-06-19 13:44:07 +00:00
Philipp Schafft
33dcf24d21 Fix: Only reuse client IF we reached the end of it's body 2018-06-19 13:44:07 +00:00