net.TCPConn.SyscallConn exposes the fd which you can use with sycalls On Friday, October 8, 2021 at 7:05:40 PM UTC+2 bjeun...@gmail.com wrote:
> Hi, > > looking at the net package of the standard library, I don't see a way to > set the tcp max segment size. Surely, one can create a tcp connection > manually and set the segment size by using the syscall package, but that > approach prevents them from reusing higher level packages that want a > net.Dialer, for example crypto/tls. So in short, to create a tls > connection in golang and set its TCP MSS, one has to reimplement tls, > unless I missed something. > > Would it make sense to have a dialer field for the MSS? > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/478d6db0-3502-4090-a46f-eed808b48a82n%40googlegroups.com.