You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
server/router/build: remove wrapOutputBufferedUntilRequestRead workaround if possible #51209
Hello, I'm interested in contributing and would like to work on this feature if it's available.
My classmate Ian Kim and I are CS students at the University of Texas, currently taking a virtualization course that includes an open-source contribution component.
We proposed this issue to our professor, and he approved it as a suitable contribution. Could you confirm whether this is something the team is interested in moving forward with? If so, could it be assigned to me?
Yes, contributions welcome; big disclaimer though that the main work will be to verify if the code is still needed. I started to dig a bit in git history to try and find if there were good reproducers that could help verify if it's still needed (or redundant now / replaceable with alternatives), but didn't have time to fully dig in, hence why I opened a ticket as a reminder to look into it ☺️😅
We've looked into this a bit and have begun experimenting a bit with EnableFullDuplex() in local environments. We also drafted a potential alternative to wrapOutputBufferedUntilRead() using EnableFullDuplex(). Here's a snippet:
if r.Body != nil {
rc := http.NewResponseController(w)
if err := rc.EnableFullDuplex(); err != nil {
log.G(ctx).WithError(err).Debug("failed to enable full-duplex, response may be buffered")
}
}
From what we understand, most of the work here will be testing and validating whether an implementation like this is actually correct. Our plan is to first reproduce the original behavior that the workaround was meant to fix, so we can confirm that the new approach resolves it. Does that seem like the right direction to take? And do you have any suggestions or references that could help us better understand the specific issue the workaround was originally added for?
Activity
jasonoh11 commentedon Nov 11, 2025
Hello, I'm interested in contributing and would like to work on this feature if it's available.
My classmate Ian Kim and I are CS students at the University of Texas, currently taking a virtualization course that includes an open-source contribution component.
We proposed this issue to our professor, and he approved it as a suitable contribution. Could you confirm whether this is something the team is interested in moving forward with? If so, could it be assigned to me?
Thanks!
thaJeztah commentedon Nov 11, 2025
Yes, contributions welcome; big disclaimer though that the main work will be to verify if the code is still needed. I started to dig a bit in git history to try and find if there were good reproducers that could help verify if it's still needed (or redundant now / replaceable with alternatives), but didn't have time to fully dig in, hence why I opened a ticket as a reminder to look into it☺️ 😅
jasonoh11 commentedon Nov 18, 2025
We've looked into this a bit and have begun experimenting a bit with EnableFullDuplex() in local environments. We also drafted a potential alternative to wrapOutputBufferedUntilRead() using EnableFullDuplex(). Here's a snippet:
From what we understand, most of the work here will be testing and validating whether an implementation like this is actually correct. Our plan is to first reproduce the original behavior that the workaround was meant to fix, so we can confirm that the new approach resolves it. Does that seem like the right direction to take? And do you have any suggestions or references that could help us better understand the specific issue the workaround was originally added for?
jasonoh11 commentedon Nov 24, 2025
Hi, any updates/thoughts/tips on our plan?
server/router/build: replace output buffering workaround with EnableF…
server/router/build: replace output buffering workaround with EnableF…
server/router/build: replace output buffering workaround with EnableF…