Skip to content
quarry Artifact [68023e09bf]
Login

Artifact [68023e09bf]

Artifact 68023e09bfb8adc3cebdaa49384e9365779d01a231e36fcee4f2e6ea43eb5093:

Ticket change [68023e09bf] - New ticket [9d59ebbfe9] Bind the listener before registering repositories, not after. by dmestas on 2026-08-24 23:00:08.
D 2026-08-24T23:00:08.461
J comment The\sforge\srefuses\sconnections\sfor\sthe\swhole\sof\sstartup\sbecause\nListenAndServe\sruns\safter\severy\srepository\shas\sbeen\sregistered,\sand\nregistration\sis\sserial\sand\sshells\sout\sto\szit\sper\srepo.\n\nMeasured\son\sthe\sdemo\sfleet,\s2026-08-24:\s25\srepositories,\s~105s\sfrom\nprocess\sstart\sto\sbound\sport.\sWorst\ssingle\srepo\s18.4s\s(tcl),\sthen\ssqlite\n12.1s.\sDuring\sthat\swindow\sthe\ssite\sis\snot\sslow\s—\sit\sis\snot\slistening,\nso\severy\srequest\sis\sa\sconnection\srefusal\srather\sthan\sa\spage.\n\nstartup-latency\sbounds\sthe\sworst\soffender:\s'zit\ssubmanifest\sshow'\stook\n116s\son\stcl\sand\s16s\son\ssqlite\swhere\sthe\scode's\scomment\sclaimed\s~250ms,\nand\sit\sis\scapped\sat\s2s\snow.\sThat\sturns\sminutes\sinto\s~105s.\sIt\sdoes\snot\nfix\sthe\sshape.\n\nTHE\sFIX:\sbind\sfirst,\sregister\sin\sthe\sbackground.\sA\srequest\sthat\sarrives\nbefore\sits\srepository\sis\sready\sshould\sget\sa\spage\ssaying\sso\s—\sthe\nIndexing\sflag\sand\sits\ssurfaces\salready\sexist\sfor\sexactly\sthat\sstate\s—\nrather\sthan\sa\srefused\sconnection,\swhich\sis\sindistinguishable\sfrom\sthe\nforge\sbeing\sdead.\sRegistration\sis\sper-repo\sindependent,\sso\sit\scan\salso\nrun\sconcurrently\sunder\sthe\sexisting\singest\slane.\n\nWHAT\sNOT\sTO\sDO:\sraise\sthe\sprobe\stimeout,\sor\scache\sthe\sprobe\sresult\son\ndisk.\sBoth\sleave\sa\sstartup\spath\swhose\scost\sis\sa\sfunction\sof\show\smuch\nhistory\sthe\sfleet\sholds,\swhich\sis\sthe\sactual\sdefect.\n\nRelated:\s'zit\ssubmanifest\sshow'\scosting\s116s\son\sa\s94k-artifact\sstore\smay\nitself\sbe\sworth\sa\szit\sissue\s—\sit\sis\sanswering\sa\syes/no\squestion\sabout\nwhether\sany\sS-bearing\sartifact\sexists.
J priority High
J status Open
J subsystem server
J title Bind\sthe\slistener\sbefore\sregistering\srepositories,\snot\safter
J type Code_Defect
K 9d59ebbfe9854503039c982763910e349f40ce99
U dmestas
Z 32cf0b74ed40785a8014468180be8643