Getting GC and SC

ngocdaothanh edited this page Sep 13, 2010 · 4 revisions

See Yaws internals for information about GC and SC.

Things in GC and SC may be useful, for example:

  • Server name (host:port as seen from the HTTP client)
  • ETS table for storing any application data for the application

There is a separate process for each request. Yaws sets GC and SC in the process dictionary. From a request processing process:

  • To get GC: get(gc)
  • To get SC: get(sc)
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.