search for: serversock

Displaying 7 results from an estimated 7 matches for "serversock".

2004 Aug 06
1
[PATCH] IceCast2 - aliasing (reimplementation of the patch I posted earlier)
...rc/connection.c --- icecast/src/connection.c 2003-04-18 11:00:19.000000000 -0400 +++ IceCast/src/connection.c 2003-04-18 20:45:54.000000000 -0400 @@ -109,11 +109,12 @@ return id; } -connection_t *create_connection(sock_t sock, char *ip) { +connection_t *create_connection(sock_t sock, sock_t serversock, char *ip) { connection_t *con; con = (connection_t *)malloc(sizeof(connection_t)); memset(con, 0, sizeof(connection_t)); con->sock = sock; + con->serversock = serversock; con->con_time = time(NULL); con->id = _next_connection_id(); con->ip = ip;...
2004 Aug 06
0
[PATCH] IceCast2 - socket-based default mount
...rc/connection.c --- icecast/src/connection.c 2003-03-27 12:09:41.000000000 -0500 +++ IceCast/src/connection.c 2003-04-18 09:44:50.000000000 -0400 @@ -109,11 +109,12 @@ return id; } -connection_t *create_connection(sock_t sock, char *ip) { +connection_t *create_connection(sock_t sock, sock_t serversock, char *ip) { connection_t *con; con = (connection_t *)malloc(sizeof(connection_t)); memset(con, 0, sizeof(connection_t)); con->sock = sock; + con->serversock = serversock; con->con_time = time(NULL); con->id = _next_connection_id(); con->ip = ip;...
2004 Oct 05
3
Icecast 2.0.1 segmentation fault under LInux
...(LWP 7487)] [New Thread 104551 (LWP 7488)] [New Thread 105576 (LWP 7523)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 8201 (LWP 384)] _handle_get_request (con=0xe86b95a4, parser=0x814f680, uri=0x81854e0 "/") at connection.c:720 720 if(global.serversock[i] == con->serversock) { (gdb) info threads 105 Thread 105576 (LWP 7523) 0x40346bb0 in poll () from /lib/libc.so.6 104 Thread 104551 (LWP 7488) 0x40346bb0 in poll () from /lib/libc.so.6 * 10 Thread 8201 (LWP 384) _handle_get_request (con=0xe86b95a4, parser=0x814f680, uri=0x81854e0...
2004 Oct 05
0
Icecast 2.0.1 segmentation fault under LInux
...'s an example of the same one under LInux, thereby making it > moer important for *nix users to upgrade than the release note suggested. > > _handle_get_request (con=0xe86b95a4, parser=0x814f680, uri=0x81854e0 "/") > at connection.c:720 > 720 if(global.serversock[i] == con->serversock) { Geoff, This looks like something that should be "impossible". It's almost certainly memory corruption somewhere - and so the bug is probably somewhere else entirely, nowhere near this code. Do you have any way to reproduce this on demand? Or is it jus...
2010 Jul 30
33
[PATCHES] Smartjog PatchDump
Hello, I work at SmarctJog.com, we have here some patches on IceCast for performance and reliability, these are mostly client/connection/source cleanups (a slave merge is underway, and some more good stuff (c)), but we'd like this to be merged in before the list gets any longer. Please find attached a list of our patches with a short desc: This one is actually not from us/me, it was found
2004 Aug 06
2
improved error.log output --diff
...icecast-new/src/connection.c --- icecast/src/connection.c 2003-07-18 16:29:23.000000000 -0400 +++ icecast-new/src/connection.c 2003-08-06 19:18:46.000000000 -0400 @@ -153,7 +153,7 @@ if (ufds[i].revents & (POLLHUP|POLLERR)) { close (global.serversock[i]); - WARN0("Had to close a listening socket"); + WARN0("Had to close a listening socket, %s", "-"); } global.serversock[i] = -1; } @@ -229,7 +229,7 @@ } if (!sock_recover...
2011 Apr 29
4
You don't check for malloc failure
...src/connection.c Wed Dec 19 19:58:00 2007 +++ icecast-2.3.2/src/connection.c Thu Apr 28 19:53:43 2011 @@ -532,6 +532,9 @@ /* malloc enough room for a full IP address (including ipv6) */ ip = (char *)malloc(MAX_ADDR_LEN); + if (ip == NULL) { + abort(); + } sock = sock_accept(serversock, ip, MAX_ADDR_LEN); if (sock != SOCK_ERROR) diff -ru icecast-2.3.2-ORIG/src/format_vorbis.c icecast-2.3.2/src/format_vorbis.c --- icecast-2.3.2-ORIG/src/format_vorbis.c Thu Sep 13 00:40:55 2007 +++ icecast-2.3.2/src/format_vorbis.c Thu Apr 28 19:54:26 2011 @@ -401,6 +401,9 @@ plugin->s...