View | Details | Raw Unified | Return to bug 12949
Collapse All | Expand All

(-)rtsp_proxy-kiss/Makefile (-1 / +1 lines)
Lines 3-9 Link Here
3
# Date created:				8 June 1999
3
# Date created:				8 June 1999
4
# Whom:					Richard Kiss <richard@homemail.com>
4
# Whom:					Richard Kiss <richard@homemail.com>
5
#
5
#
6
# $Id: Makefile,v 1.2 1999/08/01 02:35:05 steve Exp $
6
# $Id: Makefile,v 1.1.1.1 1999/06/16 16:47:36 billf Exp $
7
#
7
#
8
8
9
DISTNAME=	SS1.0.1
9
DISTNAME=	SS1.0.1
(-)rtsp_proxy-kiss/patches/patch-ac (+22 lines)
Line 0 Link Here
1
--- ../proxy.c	Tue Jul  6 17:42:19 1999
2
+++ ../proxy.c	Tue Jul 20 22:26:39 1999
3
@@ -1142,7 +1142,18 @@
4
 			}
5
 			//
6
 			// did we get a complete response yet?
7
-			if (! has_two_crlfs(s->sinbuf))
8
+			//
9
+
10
+// this used to look for a blank line, which is a dumb way to check if we 
11
+// have a complete response since that only means we have a complete header. 
12
+// the correct method would be to check the 'Content-Length:' header, but 
13
+// that's too much trouble without a lot of re-writing. so this is a cheap 
14
+// hack to look and see if the buffer ends on a 'CRLF' pair - this might get 
15
+// broken if we happen to break on an end-of-line, but it's better than 
16
+// nothing.  
17
+
18
+			pBuf = s->sinbuf + s->amtInServerInBuffer - 2;
19
+			if ((pBuf[0] != '\r') || (pBuf[1] != '\n'))
20
 				break;
21
 
22
 			//
(-)rtsp_proxy-kiss/patches/patch-ad (+29 lines)
Line 0 Link Here
1
--- ../shared_udp.c	Tue Jul  6 17:42:26 1999
2
+++ ../shared_udp.c	Tue Jul 20 23:54:38 1999
3
@@ -259,7 +259,16 @@
4
 			gNextPort++;
5
 		if (gNextPort > gUDPPortMax)
6
 			gNextPort = gUDPPortMin;
7
-	} while (bind_socket_to_address(skt1, fromIP, port1 = gNextPort++, false) != 0);
8
+	} while (bind_socket_to_address(skt1, INADDR_ANY, port1 = gNextPort++, false) != 0);
9
+
10
+// i've changed the previous bind and the next one below to bind to any
11
+// IP number rather than using 'fromIP'. 'fromIP' is obtained from gProxyIP
12
+// which is in turn obtained from 'get_local_ip_address'. this function
13
+// gets the current hostname and then resolves that into an address. however,
14
+// since a proxy server runs on a bridging system with multiple IP addresses,
15
+// this is as likely as not to return the wrong IP address, which results in
16
+// the proxy missing all of the traffic from the server. not binding to a
17
+// specific address is cheap but gets a result.
18
 
19
 	if (withSib) {
20
 retry_rtcp:
21
@@ -271,7 +280,7 @@
22
 			else
23
 				goto bail_error;
24
 		}
25
-		if (bind_socket_to_address(skt2, fromIP, port2 = gNextPort++, false) != 0) {
26
+		if (bind_socket_to_address(skt2, INADDR_ANY, port2 = gNextPort++, false) != 0) {
27
 			close_socket(skt1);
28
 			close_socket(skt2);
29
 			skt1 = INVALID_SOCKET;
(-)rtsp_proxy-kiss/patches/patch-ae (+16 lines)
Line 0 Link Here
1
--- ../proxy.h	Tue Jul  6 17:42:19 1999
2
+++ ../proxy.h	Tue Jul 20 22:26:39 1999
3
@@ -80,7 +80,12 @@
4
 	trans_pb	RTCP_C2S_tpb;
5
 } track_info;
6
 
7
-#define RTSP_SESSION_BUF_SIZE	1024
8
+// 1024 is too small for some server messages, so i've up'd this to 2048
9
+// instead as the proxy will otherwise truncate the message before sending
10
+// it on to the client, this will confuse the client no end.
11
+
12
+#define RTSP_SESSION_BUF_SIZE	2048
13
+
14
 typedef struct rtsp_session {
15
 	struct rtsp_session *next;
16
 	int		die;

Return to bug 12949