[go-nuts] Best way to buffer upstream responses in reverse proxy

2020-01-17 Thread Tamás Gulácsi
Start simple: use a *bytes.Buffer, and help the GC with using a sync.Pool for those buffers. -- 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

[go-nuts] Best way to buffer upstream responses in reverse proxy

2020-01-17 Thread Prabhu Chawandi
Hello, For a single request from a client, I have to make multiple upstream requests and send a single response back to the client. I am looking for best way to buffer in the proxy and write all at once, where GC is not hurting the performance, seamlessly work for multiple client request simu

[go-nuts] Go TLS OCSP stapling

2020-01-17 Thread 'Divjot Arora' via golang-nuts
If a server does not support the OCSP must staple extension and the certificate returned by the server has an OCSP responder endpoint, will the Go TLS library automatically connect to the responder to figure out if the certificate is valid? I did some initial testing for this using a mock respo

Re: [go-nuts] [Proposal] database/sql: add interface that unite DB and Tx

2020-01-17 Thread 'Eric Johnson' via golang-nuts
Indeed. The strength of Go's interfaces is precisely that a library provider does not need to create interfaces, unless they are critical to the implementation of the library. You should create these types of interfaces when you need them. There's a subtle versioning problem here. If Go adds a

Re: [go-nuts] How to query mongodb

2020-01-17 Thread burak serdar
On Fri, Jan 17, 2020 at 2:11 AM wrote: > > Hi I have in my collection this JSON > > { > "allowedSnssaiList": [ > { > "allowedSnssai": { > "sst": 1, > "sd": "1" > }, > "allowedSnssai": { > "sst": 2, > "sd": "3" > } >} >] > } > how can query using the key sst and sd to return a documen

[go-nuts] GOlang Quiz - https://www.udemy.com/course/the-ultimate-go-golang-programming-challenge/?referralCode=615971CFB56748AB95F5

2020-01-17 Thread KD Notes
A collection of Golang quiz question -- 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

Re: [go-nuts] go under rtems on arm?

2020-01-17 Thread Ian Lance Taylor
On Fri, Jan 17, 2020 at 5:41 AM Steve Simon wrote: > > There was an RTEMS port as a GSOC project about 10 years ago, this was a port > of gccgo to x86. > > I would like to be able to run go apps under RTEMS on Arm, but have no real > understanding of the effort required > to do so. Would anyone

[go-nuts] go under rtems on arm?

2020-01-17 Thread Steve Simon
Hi all, There was an RTEMS port as a GSOC project about 10 years ago, this was a port of gccgo to x86. I would like to be able to run go apps under RTEMS on Arm, but have no real understanding of the effort required to do so. Would anyone be able to summerize in a few sentences? I could use a

Re: [go-nuts] Reusing tcp connections on tunnels

2020-01-17 Thread Kevin Chadwick
If you look at OpenSSH they have tcp keepalives as an option to inform routers to not drop the state and encrypted keep alives that aren't spoofable. There will also be timeout settings that people will want to modify. All of this is app specific DDOS/efficiency/up time/ease of use/timely inform

[go-nuts] How to query mongodb

2020-01-17 Thread afriyie . abraham
Hi I have in my collection this JSON { "allowedSnssaiList": [ { "allowedSnssai": { "sst": 1, "sd": "1" }, "allowedSnssai": { "sst": 2, "sd": "3" } } ] } how can query using the key sst and sd to return a documents matching the two exact values? Example when i query using sst:1, sd :

[go-nuts] Re: How to query mongodb dynamically using Go interface

2020-01-17 Thread afriyie . abraham
Hi, The problem wa about the index, i solved it by using the right index bson.M{"amfInfo.taiList.tac": args[2]} since the fuction is called Da.FindIp(targetNfType, sst, sd, tac) Thanks! On Thursday, January 16, 2020 at 5:04:40 PM UTC+2, Afriyie Abraham Kwabena wrote: > > Hi, > > I have been tr