It's Synolgoy DSM update day

Just a heads up Synolgoy has been pushing out an update to DSM and many of the applications. I just did the update to 6.2.4-25556 on my DS1019+ and they still have the darn WSD issue with Windows were you don’t see the NAS in windows explorer. I kept an old post from the Synology forms that outlines this is a poorly written Python library and had to make the change to the Python code to re-enable WSD. Below is a snippet of what I saved and used:

/usr/lib/python2.7/site-packages/WSDiscovery.py, near line 955                    <--- Depends on NAS Model
/usr/lib/python2.7/site-packages/wsdiscovery/daemon.py, near line 177     <--  Depends on NAS Model 

Original code:
Code:
for fd, event in self._poll.poll(timeout):
            sock = socket.fromfd(fd, socket.AF_INET, socket.SOCK_DGRAM)
            try:
                data, addr = sock.recvfrom(BUFFER_SIZE)
            except socket.error as e:
                time.sleep(0.01)
                continue

Modified code:
Code:
for fd, event in self._poll.poll(timeout):
            try:
                sock = socket.fromfd(fd, socket.AF_INET, socket.SOCK_DGRAM)

                data, addr = sock.recvfrom(BUFFER_SIZE)
            except socket.error as e:
                time.sleep(0.01)
                continue
Before editing the script file, I unchecked WS-Discovery in Control Panel. After editing I returned it back to it's checked state. FWIW, it's a good practice to make a copy of the original script file before editing.

I hope this helps someone. Unfortunately, the re-edit is required with a DSM update.
1 Like

Good info! This may apply when I get my DS1621+.