Re: Strange behaviour searching with ['songs', ] via jsonrpc

philchillbill <philchillbill.a47vtz-NUepA2SMhDQqspMVqqL2D+4xXEVPTSb/[email protected]>
Newsgroups gmane.music.equipment.slimdevices.devel
Organization Logitech Squeezebox Forums
Message-ID <[email protected]>
mherger wrote: 
> In the upcoming 8.2 build:
> 
> "fulltextsearch ?" => "fulltextsearch 1": FTS available
> "fulltextsearch ?" => "fulltextsearch ?|0": FTS not available
> 
> Always make sure that you check against "1", as if the plugin was 
> missing/disabled, LMS would simply echo the request, returning a 
> "truthy" value (in some languages like JS) "?" as the result.

Upon testing using ['fulltextsearch', '?'] in jsonrpc.js

when FTS is enabled the response is an object { _can: 1 } 

when FTS is disabled the request results in ECONNRESET with message
'socket hang up'.

Is this because the code to respond to the request is contained in the
plugin itself, which cannot respond if not enabled?


------------------------------------------------------------------------
philchillbill's Profile: http://forums.slimdevices.com/member.php?userid=68920
View this thread: http://forums.slimdevices.com/showthread.php?t=114732
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.