Skip to content

remove run-server - #106

Closed
samth wants to merge 1 commit into
racket:masterfrom
samth:run-server
Closed

samth wants to merge 1 commit into
racket:masterfrom
samth:run-server

Conversation

@samth

@samth samth commented Jul 14, 2021 •

Copy link
Copy Markdown
Member

Not yet sure if this is a good idea.

@jeapostrophe

Copy link
Copy Markdown
Contributor

We just don't like mzlib? Is this just a copy & paste of run-server?

@samth

samth commented Jul 14, 2021

Copy link
Copy Markdown
Member Author

Copy-paste and specialized.

This removed the dependency on mzlib entirely for the web-server-lib package. I think the other possibility is moving run-server somewhere more sensible.

@LiberalArtist

Copy link
Copy Markdown
Contributor

I remember looking at run-server when I was working on #84 and being surprised, first that such a core part of the web server was implemented in a deprecated library from the compatibility-lib package, then that run-server was in a deprecated package, since it seemed to handle some tricky details (much of what “More: Systems Programming with Racket” covers, IIRC) that could be nice to reuse, e.g. for non-TCP servers.

Putting run-server, or the most useful parts of it, in some non-deprecated package is appealing, especially if it were modernized a bit, e.g. with keyword arguments.

On the other hand, it's hard to know when to stop generalizing and modernizing, especially without having a second use concretely at hand. For example, having the kill timeout be hard-coded as twice the break timeout seems unfortunate for a general function.

If it seems better to copy–paste for now, I'd add a comment here and maybe even in mzlib/thread in the hope of prompting someone to tackle the refactoring in the future.

@Bogdanp Bogdanp mentioned this pull request Jun 15, 2022
@Bogdanp

Bogdanp commented Jun 28, 2022

Copy link
Copy Markdown
Contributor

I think this can be closed now that #121 is merged.

@samth samth closed this Jun 28, 2022
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.

4 participants