Skip to content

Modified worker commands to use UDS instead of TCP#359

Open
bridgetwu33 wants to merge 3 commits intoopen-lambda:mainfrom
bridgetwu33:feature/uds-commands
Open

Modified worker commands to use UDS instead of TCP#359
bridgetwu33 wants to merge 3 commits intoopen-lambda:mainfrom
bridgetwu33:feature/uds-commands

Conversation

@bridgetwu33
Copy link
Contributor

Originally, the status, stats, debug, pprof men, pprof cpu start, and pprof cpu stop commands used a TCP HTTP server. I changed them so their handlers are on the UNIX socket mux instead.

bridgetwu33 and others added 3 commits November 1, 2025 23:59
* Added UDS functionality to boss. Can be used in place of TCP ports

* Edited UDS to be implemented in worker, undoed changes to boss and config files

* Modified workers to use mux for port and UDs, added error channel for http server error handling

* Reordered handler and server creation

* Reordered removing sockPath

* Changed comments with UDS to UNIX domain socket

* Refactored waiting for signals from error handling channel

* Renamed shutdown function to WriteFinalStats, changed cleanup

* Fixed typo

* Fixed shutdown logic

* Fixed commands.go

* Fixed error messages, Main can now return an error, and added panic in case of nil error

* Changed commands.go to handle main returning nil

* Fixed err variable

* Modified NewLambdaServer to take in a serveMux

* Modified NewSockServer to take in a serveMux

* Moved check for nil error

* Changed upCmd to return event.Main

* Added comment about upCmd behavior to commands.go

* Moved check for nil error

* Changed upCmd to return event.Main

* Added comment about upCmd behavior to commands.go

* Removed unused parameters pidPath and server from WriteFinalStats function

---------

Co-authored-by: Bridget Wu <bwu227@cs544-bwu227.cs.wisc.edu>
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

Successfully merging this pull request may close these issues.

1 participant