brolley wrote:
> [...]
>> Thoughts? More ideas while we're at it?
(All of the above make sense.)
> Heh -- just thought of another one.
>
> In the current API, we know which service we're trying to discover
> (e.g. pmcd). Perhaps once it is known that something is listening, we
> should also try to connect as an actual client of that service
> (i.e. go through the handshake). [...]
The complete handshake can need more information than just the
hostspec (ip address:port) string, like ssl and authentication info.
We'd have to find some way of passing that info into the discovery
function. Plus, we know that libpcp is not as thread-safe as formerly
believed, and making concurrent trial connections might rely upon the
problematic code. I suggest leaving this aspect in the hands of the
pmDiscoverServices client.
By the way, the pmDiscoverServices.3 man page should include some
examples of output, to make concrete the generic "URL" term.
- FChE
|