Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: create http server #194

Open
wants to merge 2 commits into
base: feat/market
Choose a base branch
from
Open

feat: create http server #194

wants to merge 2 commits into from

Conversation

LexLuthr
Copy link
Contributor

@LexLuthr LexLuthr commented Sep 4, 2024

This PR add a HTTPS server to Curio market.
The autocert cache is stored in DB instead of a directory which can be access by all nodes.

@LexLuthr LexLuthr changed the base branch from feat/market to main September 4, 2024 13:37
@LexLuthr LexLuthr changed the base branch from main to feat/market September 4, 2024 13:38
@LexLuthr LexLuthr changed the title feat: create http server [WIP] feat: create http server Sep 4, 2024
@LexLuthr LexLuthr changed the title [WIP] feat: create http server feat: create http server Sep 6, 2024
Comment on lines +578 to +579
// WriteTimeout is the maximum duration before timing out writes of the response to the client.
WriteTimeout time.Duration
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we later able to set this higher for responses from e.g. the /piece endpoint?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. I will try to find better write defaults once this is merged. More practical ones.

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.

2 participants