Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Respond to M-SEARCH message "ssdp:all" #100

Closed
wants to merge 2 commits into from

2 participants

@ler0y

This pull requests solves the connection issue I had with my Philips HTS player where it could last max 3 minutes to make an connection with the server.
The current code does not reply to the M-SEARCH request sent by this player.

The fastest way to connect was by restarting the server.
Else the player was only found after the ALIVE... message. (which is sent every 3 minutes)

The M-SEARCH message from the player, which is sent 3 times every 30 seconds and directly after startup:

M-SEARCH * HTTP/1.1
HOST: 239.255.255.250:1900
MAN: "ssdp:discover"
MX: 3
ST: ssdp:all

Next url describes that "All other UPnP devices or programs are required to respond to this message":
http://www.upnp-hacks.org/upnp.html

Until now I thought that something in my setup was not allowing PMS to accept/reply to the M-Search request as stated in the PS3 Media Server Tutorial/FAQ.:
http://www.ps3mediaserver.org/forum/viewtopic.php?f=6&t=3507&start=10#p22384

The topic I created for this Philips player on the forum in the Alternative Media Renderers section:
http://www.ps3mediaserver.org/forum/viewtopic.php?f=15&t=12369

Maybe this solves also the next connection issues:
http://www.ps3mediaserver.org/forum/viewtopic.php?f=15&t=12368&start=60#p75635
http://www.ps3mediaserver.org/forum/viewtopic.php?f=15&t=12368&start=70#p76285

Debug logs without and with this fix:

Without this fix PMS does not respond to the M-SEARCH:

TRACE 2012-11-26 00:55:52.968 [UPNPHelper] Receiving a M-SEARCH from [192.168.2.2:59000]
TRACE 2012-11-26 00:55:52.968 [UPNPHelper] Receiving a M-SEARCH from [192.168.2.2:59000]
TRACE 2012-11-26 00:55:52.968 [UPNPHelper] Receiving a M-SEARCH from [192.168.2.2:59000]
TRACE 2012-11-26 00:55:54.903 [UPNPHelper] Receiving a M-SEARCH from [192.168.2.2:59000]
TRACE 2012-11-26 00:55:54.903 [UPNPHelper] Receiving a M-SEARCH from [192.168.2.2:59000]
TRACE 2012-11-26 00:55:54.903 [UPNPHelper] Receiving a M-SEARCH from [192.168.2.2:59000]
TRACE 2012-11-26 00:56:24.902 [UPNPHelper] Receiving a M-SEARCH from [192.168.2.2:59000]
TRACE 2012-11-26 00:56:24.902 [UPNPHelper] Receiving a M-SEARCH from [192.168.2.2:59000]
TRACE 2012-11-26 00:56:24.902 [UPNPHelper] Receiving a M-SEARCH from [192.168.2.2:59000]
TRACE 2012-11-26 00:56:54.901 [UPNPHelper] Receiving a M-SEARCH from [192.168.2.2:59000]
TRACE 2012-11-26 00:56:54.901 [UPNPHelper] Receiving a M-SEARCH from [192.168.2.2:59000]
TRACE 2012-11-26 00:56:54.901 [UPNPHelper] Receiving a M-SEARCH from [192.168.2.2:59000]
TRACE 2012-11-26 00:57:24.899 [UPNPHelper] Receiving a M-SEARCH from [192.168.2.2:59000]
TRACE 2012-11-26 00:57:24.899 [UPNPHelper] Receiving a M-SEARCH from [192.168.2.2:59000]
TRACE 2012-11-26 00:57:24.899 [UPNPHelper] Receiving a M-SEARCH from [192.168.2.2:59000]
TRACE 2012-11-26 00:57:54.898 [UPNPHelper] Receiving a M-SEARCH from [192.168.2.2:59000]
TRACE 2012-11-26 00:57:54.898 [UPNPHelper] Receiving a M-SEARCH from [192.168.2.2:59000]
TRACE 2012-11-26 00:57:54.898 [UPNPHelper] Receiving a M-SEARCH from [192.168.2.2:59000]
DEBUG 2012-11-26 00:58:18.610 [UPNP-AliveMessageSender] Sending ALIVE...
TRACE 2012-11-26 00:58:18.610 [UPNP-AliveMessageSender] Setting multicast network interface: name:eth3 (Marvell Yukon 88E8056 PCI-E Gigabit Ethernet Controller)
TRACE 2012-11-26 00:58:18.641 [UPNP-AliveMessageSender] Sending message from multicast socket on network interface: name:eth3 (Marvell Yukon 88E8056 PCI-E Gigabit Ethernet Controller)
TRACE 2012-11-26 00:58:18.641 [UPNP-AliveMessageSender] Multicast socket is on interface: /192.168.2.6
TRACE 2012-11-26 00:58:18.641 [UPNP-AliveMessageSender] Socket Timeout: 0
TRACE 2012-11-26 00:58:18.641 [UPNP-AliveMessageSender] Socket TTL: 32
TRACE 2012-11-26 00:58:18.641 [UPNPHelper] Receiving a NOTIFY from [192.168.2.6:51362]
TRACE 2012-11-26 00:58:18.641 [New I/O server boss #1 ([id: 0x59b4d384, /192.168.2.6:5001])] Creating new pipeline
TRACE 2012-11-26 00:58:18.854 [New I/O server worker #1-2] Access denied for address /192.168.2.254 based on IP filter
TRACE 2012-11-26 00:58:19.308 [UPNPHelper] Receiving a NOTIFY from [192.168.2.6:51362]
TRACE 2012-11-26 00:58:19.313 [New I/O server boss #1 ([id: 0x59b4d384, /192.168.2.6:5001])] Creating new pipeline
TRACE 2012-11-26 00:58:19.512 [New I/O server worker #1-3] Access denied for address /192.168.2.254 based on IP filter
TRACE 2012-11-26 00:58:19.751 [UPNPHelper] Receiving a NOTIFY from [192.168.2.6:51362]
TRACE 2012-11-26 00:58:20.510 [UPNPHelper] Receiving a NOTIFY from [192.168.2.6:51362]
TRACE 2012-11-26 00:58:21.323 [UPNPHelper] Receiving a NOTIFY from [192.168.2.6:51362]
TRACE 2012-11-26 00:58:21.323 [New I/O server boss #1 ([id: 0x59b4d384, /192.168.2.6:5001])] Creating new pipeline
TRACE 2012-11-26 00:58:21.323 [New I/O server worker #1-4] Opened request handler on socket /192.168.2.2:50145
TRACE 2012-11-26 00:58:21.323 [New I/O server worker #1-4] Request: HTTP/1.1 : GET : description/fetch
TRACE 2012-11-26 00:58:21.323 [New I/O server worker #1-4] Received on socket: CONNECTION: Keep-Alive
TRACE 2012-11-26 00:58:21.323 [New I/O server worker #1-4] Received on socket: DATE: Sun, 25 Nov 2012 23:58:19 GMT
TRACE 2012-11-26 00:58:21.323 [New I/O server worker #1-4] Received on socket: HOST: 192.168.2.6:5001
TRACE 2012-11-26 00:58:21.323 [New I/O server worker #1-4] Received on socket: USER-AGENT: IPI/1.0 UPnP/1.0 DLNADOC/1.50
INFO 2012-11-26 00:58:21.323 [pool-7-thread-2] Checking IP: 192.168.2.2 for Philips HTS
INFO 2012-11-26 00:58:21.323 [pool-7-thread-2] Renderer Philips HTS found on this address: philipsHTS.lan (192.168.2.2)
DEBUG 2012-11-26 00:58:21.339 [pool-7-thread-2] Starting ping -n 3 -l 64000 192.168.2.2
TRACE 2012-11-26 00:58:21.361 [New I/O server worker #1-4] Matched media renderer "Philips HTS" based on header "USER-AGENT: IPI/1.0 UPnP/1.0 DLNADOC/1.50"
TRACE 2012-11-26 00:58:21.361 [New I/O server worker #1-4] HTTP User-Agent: IPI/1.0 UPnP/1.0 DLNADOC/1.50
TRACE 2012-11-26 00:58:21.361 [New I/O server worker #1-4] Recognized media renderer: Philips HTS
TRACE 2012-11-26 00:58:21.361 [New I/O server worker #1-4] HTTP: description/fetch / 0-0
TRACE 2012-11-26 00:58:21.363 [New I/O server worker #1-4] Sent to socket: Accept-Ranges: bytes
TRACE 2012-11-26 00:58:21.363 [New I/O server worker #1-4] Sent to socket: Cache-Control: no-cache
TRACE 2012-11-26 00:58:21.363 [New I/O server worker #1-4] Sent to socket: Connection: keep-alive
TRACE 2012-11-26 00:58:21.363 [New I/O server worker #1-4] Sent to socket: Content-Length: 1991
TRACE 2012-11-26 00:58:21.363 [New I/O server worker #1-4] Sent to socket: Content-Type: text/xml; charset="utf-8"
TRACE 2012-11-26 00:58:21.363 [New I/O server worker #1-4] Sent to socket: Expires: 0
TRACE 2012-11-26 00:58:21.363 [New I/O server worker #1-4] Sent to socket: Server: Windows_7-amd64-6.1, UPnP/1.0, PMS/1.80.0-SNAPSHOT
DEBUG 2012-11-26 00:58:21.367 [Thread-14]
DEBUG 2012-11-26 00:58:21.367 [Thread-14] Pingen naar 192.168.2.2 met 64000 bytes aan gegevens:
DEBUG 2012-11-26 00:58:21.380 [Thread-14] Antwoord van 192.168.2.2: bytes=64000 tijd=12 ms TTL=64
TRACE 2012-11-26 00:58:21.386 [New I/O server boss #1 ([id: 0x59b4d384, /192.168.2.6:5001])] Creating new pipeline
TRACE 2012-11-26 00:58:21.390 [New I/O server boss #1 ([id: 0x59b4d384, /192.168.2.6:5001])] Creating new pipeline
TRACE 2012-11-26 00:58:21.391 [New I/O server worker #1-5] Opened request handler on socket /192.168.2.2:50146
TRACE 2012-11-26 00:58:21.392 [New I/O server worker #1-5] Request: HTTP/1.1 : SUBSCRIBE : upnp/event/content_directory
TRACE 2012-11-26 00:58:21.392 [New I/O server worker #1-5] Matched media renderer "Philips HTS" based on address /192.168.2.2
TRACE 2012-11-26 00:58:21.392 [New I/O server worker #1-5] Received on socket: CALLBACK: http://192.168.2.2:13000/
TRACE 2012-11-26 00:58:21.392 [New I/O server worker #1-5] Received on socket: HOST: 192.168.2.6:5001
TRACE 2012-11-26 00:58:21.392 [New I/O server worker #1-5] Received on socket: NT: upnp:event
TRACE 2012-11-26 00:58:21.392 [New I/O server worker #1-5] Received on socket: TIMEOUT: Second-300
TRACE 2012-11-26 00:58:21.392 [New I/O server worker #1-5] Recognized media renderer: Philips HTS
TRACE 2012-11-26 00:58:21.392 [New I/O server worker #1-5] HTTP: upnp/event/content_directory / 0-0
TRACE 2012-11-26 00:58:21.393 [New I/O server worker #1-6] Opened request handler on socket /192.168.2.2:50147
TRACE 2012-11-26 00:58:21.393 [New I/O server worker #1-6] Request: HTTP/1.1 : SUBSCRIBE : upnp/event/connection_manager
TRACE 2012-11-26 00:58:21.393 [New I/O server worker #1-6] Matched media renderer "Philips HTS" based on address /192.168.2.2
TRACE 2012-11-26 00:58:21.393 [New I/O server worker #1-6] Received on socket: CALLBACK: http://192.168.2.2:13000/
TRACE 2012-11-26 00:58:21.393 [New I/O server worker #1-6] Received on socket: HOST: 192.168.2.6:5001
TRACE 2012-11-26 00:58:21.393 [New I/O server worker #1-6] Received on socket: NT: upnp:event
TRACE 2012-11-26 00:58:21.394 [New I/O server worker #1-6] Received on socket: TIMEOUT: Second-300
TRACE 2012-11-26 00:58:21.394 [New I/O server worker #1-6] Recognized media renderer: Philips HTS
TRACE 2012-11-26 00:58:21.394 [New I/O server worker #1-6] HTTP: upnp/event/connection_manager / 0-0
TRACE 2012-11-26 00:58:21.394 [New I/O server worker #1-5] Sent to socket: Content-Length: 307
TRACE 2012-11-26 00:58:21.394 [New I/O server worker #1-5] Sent to socket: Server: Windows_7-amd64-6.1, UPnP/1.0, PMS/1.80.0-SNAPSHOT
TRACE 2012-11-26 00:58:21.394 [New I/O server worker #1-5] Sent to socket: SID: uuid:644de983-856d-3de3-8fb7-56ef5e909ffa
TRACE 2012-11-26 00:58:21.394 [New I/O server worker #1-5] Sent to socket: TIMEOUT: Second-1800
TRACE 2012-11-26 00:58:21.395 [New I/O server worker #1-6] Sent to socket: Content-Length: 329
TRACE 2012-11-26 00:58:21.395 [New I/O server worker #1-6] Sent to socket: Server: Windows_7-amd64-6.1, UPnP/1.0, PMS/1.80.0-SNAPSHOT
TRACE 2012-11-26 00:58:21.395 [New I/O server worker #1-6] Sent to socket: SID: uuid:644de983-856d-3de3-8fb7-56ef5e909ffa
TRACE 2012-11-26 00:58:21.395 [New I/O server worker #1-6] Sent to socket: TIMEOUT: Second-1800
TRACE 2012-11-26 00:58:21.484 [UPNPHelper] Receiving a NOTIFY from [192.168.2.6:51362]
TRACE 2012-11-26 00:58:22.357 [UPNPHelper] Receiving a NOTIFY from [192.168.2.6:51362]
DEBUG 2012-11-26 00:58:22.381 [Thread-14] Antwoord van 192.168.2.2: bytes=64000 tijd=12 ms TTL=64
TRACE 2012-11-26 00:58:22.550 [UPNPHelper] Receiving a NOTIFY from [192.168.2.6:51362]
TRACE 2012-11-26 00:58:22.655 [UPNPHelper] Receiving a NOTIFY from [192.168.2.6:51362]
TRACE 2012-11-26 00:58:23.147 [UPNPHelper] Receiving a NOTIFY from [192.168.2.6:51362]
DEBUG 2012-11-26 00:58:23.339 [SpeedStats Failsafe] Stopping process: ping-1
INFO 2012-11-26 00:58:23.342 [pool-7-thread-2] Address /192.168.2.2 has an estimated network speed of: 85 Mb/s

With this fix PMS responds to the M-SEARCH and the player is directly found:

TRACE 2012-12-29 01:38:54.408 [UPNPHelper] Receiving a M-SEARCH from [192.168.2.2:59000]
TRACE 2012-12-29 01:38:54.408 [UPNPHelper] Sending this reply [192.168.2.2:59000]: HTTP/1.1 200 OKCACHE-CONTROL: max-age=1200DATE: Sat, 29 Dec 2012 00:38:54 GMTLOCATION:

http://192.168.2.6:5001/description/fetchSERVER: Windows_7-amd64-6.1, UPnP/1.0, PMS/1.80.0-SNAPSHOTST: urn:schemas-upnp-org:device:MediaServer:1EXT: USN: uuid:1dcf238e-

3a20-4035-a3b1-7f23dd19b944::urn:schemas-upnp-org:device:MediaServer:1Content-Length: 0
TRACE 2012-12-29 01:38:54.408 [UPNPHelper] Receiving a M-SEARCH from [192.168.2.2:59000]
TRACE 2012-12-29 01:38:54.408 [UPNPHelper] Sending this reply [192.168.2.2:59000]: HTTP/1.1 200 OKCACHE-CONTROL: max-age=1200DATE: Sat, 29 Dec 2012 00:38:54 GMTLOCATION:

http://192.168.2.6:5001/description/fetchSERVER: Windows_7-amd64-6.1, UPnP/1.0, PMS/1.80.0-SNAPSHOTST: urn:schemas-upnp-org:device:MediaServer:1EXT: USN: uuid:1dcf238e-

3a20-4035-a3b1-7f23dd19b944::urn:schemas-upnp-org:device:MediaServer:1Content-Length: 0
TRACE 2012-12-29 01:38:54.408 [UPNPHelper] Receiving a M-SEARCH from [192.168.2.2:59000]
TRACE 2012-12-29 01:38:54.408 [UPNPHelper] Sending this reply [192.168.2.2:59000]: HTTP/1.1 200 OKCACHE-CONTROL: max-age=1200DATE: Sat, 29 Dec 2012 00:38:54 GMTLOCATION:

http://192.168.2.6:5001/description/fetchSERVER: Windows_7-amd64-6.1, UPnP/1.0, PMS/1.80.0-SNAPSHOTST: urn:schemas-upnp-org:device:MediaServer:1EXT: USN: uuid:1dcf238e-

3a20-4035-a3b1-7f23dd19b944::urn:schemas-upnp-org:device:MediaServer:1Content-Length: 0
TRACE 2012-12-29 01:38:54.418 [New I/O server boss #1 ([id: 0x78b0b306, /192.168.2.6:5001])] Creating new pipeline
TRACE 2012-12-29 01:38:54.428 [New I/O server worker #1-7] Opened request handler on socket /192.168.2.2:46819
TRACE 2012-12-29 01:38:54.428 [New I/O server worker #1-7] Request: HTTP/1.1 : GET : description/fetch
TRACE 2012-12-29 01:38:54.428 [New I/O server worker #1-7] Received on socket: CONNECTION: Keep-Alive
TRACE 2012-12-29 01:38:54.428 [New I/O server worker #1-7] Received on socket: DATE: Fri, 01 Jan 2010 00:00:11 GMT
TRACE 2012-12-29 01:38:54.428 [New I/O server worker #1-7] Received on socket: HOST: 192.168.2.6:5001
TRACE 2012-12-29 01:38:54.428 [New I/O server worker #1-7] Received on socket: USER-AGENT: IPI/1.0 UPnP/1.0 DLNADOC/1.50
INFO 2012-12-29 01:38:54.438 [pool-7-thread-2] Checking IP: 192.168.2.2 for Philips HTS
TRACE 2012-12-29 01:38:54.468 [New I/O server worker #1-7] Matched media renderer "Philips HTS" based on header "USER-AGENT: IPI/1.0 UPnP/1.0 DLNADOC/1.50"
TRACE 2012-12-29 01:38:54.468 [New I/O server worker #1-7] HTTP User-Agent: IPI/1.0 UPnP/1.0 DLNADOC/1.50
TRACE 2012-12-29 01:38:54.468 [New I/O server worker #1-7] Recognized media renderer: Philips HTS
TRACE 2012-12-29 01:38:54.468 [New I/O server worker #1-7] HTTP: description/fetch / 0-0
TRACE 2012-12-29 01:38:54.468 [New I/O server worker #1-7] Sent to socket: Accept-Ranges: bytes
TRACE 2012-12-29 01:38:54.468 [New I/O server worker #1-7] Sent to socket: Cache-Control: no-cache
TRACE 2012-12-29 01:38:54.468 [New I/O server worker #1-7] Sent to socket: Connection: keep-alive
TRACE 2012-12-29 01:38:54.468 [New I/O server worker #1-7] Sent to socket: Content-Length: 2040
TRACE 2012-12-29 01:38:54.468 [New I/O server worker #1-7] Sent to socket: Content-Type: text/xml; charset="utf-8"
TRACE 2012-12-29 01:38:54.468 [New I/O server worker #1-7] Sent to socket: Expires: 0
TRACE 2012-12-29 01:38:54.468 [New I/O server worker #1-7] Sent to socket: Server: Windows_7-amd64-6.1, UPnP/1.0, PMS/1.80.0-SNAPSHOT
TRACE 2012-12-29 01:38:54.698 [New I/O server boss #1 ([id: 0x78b0b306, /192.168.2.6:5001])] Creating new pipeline
TRACE 2012-12-29 01:38:54.708 [New I/O server boss #1 ([id: 0x78b0b306, /192.168.2.6:5001])] Creating new pipeline
TRACE 2012-12-29 01:38:54.708 [New I/O server worker #1-8] Opened request handler on socket /192.168.2.2:46820
TRACE 2012-12-29 01:38:54.708 [New I/O server worker #1-8] Request: HTTP/1.1 : SUBSCRIBE : upnp/event/content_directory
TRACE 2012-12-29 01:38:54.708 [New I/O server worker #1-8] Matched media renderer "Philips HTS" based on address /192.168.2.2
TRACE 2012-12-29 01:38:54.708 [New I/O server worker #1-8] Received on socket: CALLBACK: http://192.168.2.2:13000/
TRACE 2012-12-29 01:38:54.708 [New I/O server worker #1-1] Opened request handler on socket /192.168.2.2:46821
TRACE 2012-12-29 01:38:54.708 [New I/O server worker #1-8] Received on socket: HOST: 192.168.2.6:5001
TRACE 2012-12-29 01:38:54.708 [New I/O server worker #1-1] Request: HTTP/1.1 : SUBSCRIBE : upnp/event/connection_manager
TRACE 2012-12-29 01:38:54.708 [New I/O server worker #1-8] Received on socket: NT: upnp:event
TRACE 2012-12-29 01:38:54.708 [New I/O server worker #1-1] Matched media renderer "Philips HTS" based on address /192.168.2.2
TRACE 2012-12-29 01:38:54.708 [New I/O server worker #1-8] Received on socket: TIMEOUT: Second-300
TRACE 2012-12-29 01:38:54.708 [New I/O server worker #1-1] Received on socket: CALLBACK: http://192.168.2.2:13000/
TRACE 2012-12-29 01:38:54.708 [New I/O server worker #1-8] Recognized media renderer: Philips HTS
TRACE 2012-12-29 01:38:54.708 [New I/O server worker #1-1] Received on socket: HOST: 192.168.2.6:5001
TRACE 2012-12-29 01:38:54.708 [New I/O server worker #1-8] HTTP: upnp/event/content_directory / 0-0
TRACE 2012-12-29 01:38:54.708 [New I/O server worker #1-1] Received on socket: NT: upnp:event
TRACE 2012-12-29 01:38:54.708 [New I/O server worker #1-1] Received on socket: TIMEOUT: Second-300
TRACE 2012-12-29 01:38:54.708 [New I/O server worker #1-1] Recognized media renderer: Philips HTS
TRACE 2012-12-29 01:38:54.708 [New I/O server worker #1-1] HTTP: upnp/event/connection_manager / 0-0
TRACE 2012-12-29 01:38:54.708 [New I/O server worker #1-1] Sent to socket: Content-Length: 329
TRACE 2012-12-29 01:38:54.708 [New I/O server worker #1-8] Sent to socket: Content-Length: 307
TRACE 2012-12-29 01:38:54.718 [New I/O server worker #1-1] Sent to socket: Server: Windows_7-amd64-6.1, UPnP/1.0, PMS/1.80.0-SNAPSHOT
TRACE 2012-12-29 01:38:54.718 [New I/O server worker #1-8] Sent to socket: Server: Windows_7-amd64-6.1, UPnP/1.0, PMS/1.80.0-SNAPSHOT
TRACE 2012-12-29 01:38:54.718 [New I/O server worker #1-1] Sent to socket: SID: uuid:1dcf238e-3a20-4035-a3b1-7f23dd19b944
TRACE 2012-12-29 01:38:54.718 [New I/O server worker #1-8] Sent to socket: SID: uuid:1dcf238e-3a20-4035-a3b1-7f23dd19b944
TRACE 2012-12-29 01:38:54.718 [New I/O server worker #1-1] Sent to socket: TIMEOUT: Second-1800
TRACE 2012-12-29 01:38:54.718 [New I/O server worker #1-8] Sent to socket: TIMEOUT: Second-1800
TRACE 2012-12-29 01:38:56.418 [UPNPHelper] Receiving a M-SEARCH from [192.168.2.2:59000]
TRACE 2012-12-29 01:38:56.418 [UPNPHelper] Sending this reply [192.168.2.2:59000]: HTTP/1.1 200 OKCACHE-CONTROL: max-age=1200DATE: Sat, 29 Dec 2012 00:38:56 GMTLOCATION:

http://192.168.2.6:5001/description/fetchSERVER: Windows_7-amd64-6.1, UPnP/1.0, PMS/1.80.0-SNAPSHOTST: urn:schemas-upnp-org:device:MediaServer:1EXT: USN: uuid:1dcf238e-

3a20-4035-a3b1-7f23dd19b944::urn:schemas-upnp-org:device:MediaServer:1Content-Length: 0
TRACE 2012-12-29 01:38:56.418 [UPNPHelper] Receiving a M-SEARCH from [192.168.2.2:59000]
TRACE 2012-12-29 01:38:56.418 [UPNPHelper] Sending this reply [192.168.2.2:59000]: HTTP/1.1 200 OKCACHE-CONTROL: max-age=1200DATE: Sat, 29 Dec 2012 00:38:56 GMTLOCATION:

http://192.168.2.6:5001/description/fetchSERVER: Windows_7-amd64-6.1, UPnP/1.0, PMS/1.80.0-SNAPSHOTST: urn:schemas-upnp-org:device:MediaServer:1EXT: USN: uuid:1dcf238e-

3a20-4035-a3b1-7f23dd19b944::urn:schemas-upnp-org:device:MediaServer:1Content-Length: 0
TRACE 2012-12-29 01:38:56.418 [UPNPHelper] Receiving a M-SEARCH from [192.168.2.2:59000]
TRACE 2012-12-29 01:38:56.418 [UPNPHelper] Sending this reply [192.168.2.2:59000]: HTTP/1.1 200 OKCACHE-CONTROL: max-age=1200DATE: Sat, 29 Dec 2012 00:38:56 GMTLOCATION:

http://192.168.2.6:5001/description/fetchSERVER: Windows_7-amd64-6.1, UPnP/1.0, PMS/1.80.0-SNAPSHOTST: urn:schemas-upnp-org:device:MediaServer:1EXT: USN: uuid:1dcf238e-

3a20-4035-a3b1-7f23dd19b944::urn:schemas-upnp-org:device:MediaServer:1Content-Length: 0
TRACE 2012-12-29 01:38:59.358 [pool-7-thread-2] We couldn't get the value based on the canonical name
INFO 2012-12-29 01:38:59.358 [pool-7-thread-2] Renderer Philips HTS found on this address: 192.168.2.2
DEBUG 2012-12-29 01:38:59.358 [pool-7-thread-2] Starting ping -n 3 -l 64000 192.168.2.2
DEBUG 2012-12-29 01:38:59.388 [Thread-15]
DEBUG 2012-12-29 01:38:59.388 [Thread-15] Pingen naar 192.168.2.2 met 64000 bytes aan gegevens:
DEBUG 2012-12-29 01:38:59.398 [Thread-15] Antwoord van 192.168.2.2: bytes=64000 tijd=12 ms TTL=64
DEBUG 2012-12-29 01:39:00.398 [Thread-15] Antwoord van 192.168.2.2: bytes=64000 tijd=12 ms TTL=64
DEBUG 2012-12-29 01:39:01.358 [SpeedStats Failsafe] Stopping process: ping-1
INFO 2012-12-29 01:39:01.358 [pool-7-thread-2] Address /192.168.2.2 has an estimated network speed of: 85 Mb/s

@Raptor399 Raptor399 referenced this pull request from a commit
@Raptor399 Raptor399 Respond to M-SEARCH message "ssdp:all" (thanks, @ler0y!)
Closes pull request #100.
9b3b6b1
@Raptor399
Owner

Thanks for the thorough analysis!
Fix merged manually and committed.

@Raptor399 Raptor399 closed this
@valib valib referenced this pull request from a commit in valib/ps3mediaserver
@Raptor399 Raptor399 Respond to M-SEARCH message "ssdp:all" (thanks, @ler0y!)
Closes pull request #100.
7383c68
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 11, 2012
  1. fix Discovery

    ler0y authored
Commits on Dec 28, 2012
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/main/java/net/pms/network/UPNPHelper.java
View
4 src/main/java/net/pms/network/UPNPHelper.java
@@ -258,6 +258,10 @@ public void run() {
sendDiscover(remoteAddr, remotePort, "urn:schemas-upnp-org:device:MediaServer:1");
}
+ if (StringUtils.indexOf(s, "ssdp:all") > 0) {
+ sendDiscover(remoteAddr, remotePort, "urn:schemas-upnp-org:device:MediaServer:1");
+ }
+
if (StringUtils.indexOf(s, PMS.get().usn()) > 0) {
sendDiscover(remoteAddr, remotePort, PMS.get().usn());
}
Something went wrong with that request. Please try again.