[squeak-dev] Server timeouts and 504 return codes

Chris Muller asqueaker at gmail.com
Tue Jan 29 00:06:22 UTC 2019


> > Levente, what about the trunk directory listing, can it cache that?
> > That is the _#1 thing_ source.squeak.org is accessing and sending back
> > over, and over, and over again -- every time that MC progress box that
> > says, "Updating [repository name]".
>
> I speeded that up in squeaksource3 by caching the listing on squeak and pushing that as txt.

Interesting idea, but if your found yourself needing to cache on that
level, that would seem to be time to delegate that sort of work to
nginx, wouldn't it?


 - Chris



> SSUrlFilter>>rawListingOfProject:
>
> rawListingOfProject: projectName
>         <get>
>         <path: '/{projectName}/?format=raw'>
>         <produces: 'text/plain'>
>
>         self projectNamed: projectName do: [ :project |
>                 (self isAllowed: SSAccessPolicy read in: project)
>                         ifFalse: [ self authResponseFor: project ]
>                         ifTrue: [ self requestContext respond: [:response |
>                                 response nextPutAll: project rawDirectoryListing]]].
>
> in http://www.squeaksource.com/squeaksource3.html )
>
> TL;DR: serve the directory listing as plain list of file names when ?format=raw is requested. Only invalidate this listing when a version is added or removed.
>
> -t
>


More information about the Squeak-dev mailing list