subrata das
2016-03-14 09:44:10 UTC
Hi,
I will try to check the performance of proxy using syscal.Splice system
call to copy data of http Request to destination Server(So that proxy
quickly forward some requests directly to server). Instead of copying is
done in User Space,
I want some requests need to copy directly from the Kernel space itself.
Can you help me how do we proceed to solve this problem ?
Because in func Splice(rfd int, roff *int64, wfd int, woff *int64, len int,
flags int) (n int64, err error) , read and write fds are required
So, I couldn't understand from the net.Conn or http.Request, how do we
retrieve fd value and the offset value ?
Thanks,
Subrata
I will try to check the performance of proxy using syscal.Splice system
call to copy data of http Request to destination Server(So that proxy
quickly forward some requests directly to server). Instead of copying is
done in User Space,
I want some requests need to copy directly from the Kernel space itself.
Can you help me how do we proceed to solve this problem ?
Because in func Splice(rfd int, roff *int64, wfd int, woff *int64, len int,
flags int) (n int64, err error) , read and write fds are required
So, I couldn't understand from the net.Conn or http.Request, how do we
retrieve fd value and the offset value ?
Thanks,
Subrata
--
You received this message because you are subscribed to the Google Groups "golang-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-dev+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "golang-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-dev+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.