Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allocate port automatically for mirror and rest servers #35

Open
giraudsimon opened this issue Aug 17, 2023 · 1 comment
Open

allocate port automatically for mirror and rest servers #35

giraudsimon opened this issue Aug 17, 2023 · 1 comment

Comments

@giraudsimon
Copy link
Contributor

... to allow multiple SpecTcl instances at same time.

@rfoxkendo
Copy link
Contributor

I assume this means putting the changes I suggested to Dirk in the SpecTclInit.tcl file that's given in the documentation.
A couple of things to think about:

  • Should this SpecTclInit.tcl be in Skel? If so then new users of SpecTcl get it automatically but on the other hand if users are not using CutiePie, ReST and Mirror servers are unnecessary overhead.
  • If we start running the port manager server from NSCLDAQ in the interactive analysis systems (whatever fishtank becomes), We can make that the default way to get an unused port and that's simpler than the whole search for an unused port (which BTW I think I do in tclhttpd/ReST's start-up (search for an unused port starting with the HTTPDPort given.

If the latter is done it might be useful to pull the Tcl port manager client package into SpecTcl so that we don't have a dependency on daqstartup.bash being sourced.

"We do this not because it is easy
We do this because we thought it would be east"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants