19 comments (19 comments)9 reactions (9 reactions)0 assignees (0 assignees)Go19,008 forks (19,008 forks)batch import
FeatureRequestNeedsFixPerformancehelp wanted
Repository metrics
- Stars
- 133,883 stars (133,883 stars)
- PR merge metrics
- No merged PRs in 30d (No merged PRs in 30d)
Description
Look into making httptest.Server have a way to use in-memory networking (i.e. net.Pipe) instead of localhost TCP. Might be faster/cheaper and not hit ephemeral port issues under load?
Contributor guide
- Research direction
- This issue proposes an in memory networking option for httptest.Server. Start by reviewing the current implementation of httptest.Server in the Go source code (net/http/httptest/server.go). Explore how net.Pipe works and consider the design implications for the test server. Examine comments in the issue thread (comments 1-19) for prior ideas and concerns. There are no linked PRs, so the implementation is open. Focus on performance benchmarks and trade offs between TCP and in memory networking.
- Tech stack
- go
- Domain
- testingperformance
- Issue type
- Feature
- Prerequisites
- Go programmingnet/http/httptest packagenet.PipeGo testing