[go-nuts] Blocking waitgroup

2017-01-14 Thread vyasgiridhar27
I am implementing a multi part file downloader and I need help to find the blocking element in the following piece of code. func downPart(wg *sync.WaitGroup, url string, dataChan chan []byte, range1, range2 int) { defer wg.Done() client := new(http.Client) req, _ := http.NewRequest("GET",

[go-nuts] Attach files as part of resp

2016-11-17 Thread vyasgiridhar27
How can i attach files as a part of the http.ResponseWriter ? I have scoured through a ton of pages and am unable to find any method which works. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving

Re: [go-nuts] Stressing the system using

2016-11-14 Thread vyasgiridhar27
Why would a select statement take up most of the execution time? Is there another way to implement a non blocking channel? On Monday, November 14, 2016 at 6:01:24 PM UTC+5:30, Michael Jones wrote: > > This is funny in the sense that my programs are great at stressing the CPU > even though I don

Re: [go-nuts] Stressing the system using

2016-11-14 Thread vyasgiridhar27
Why would a select statement take up most of the execution time? Is there another way to implement a non blocking channel? On Monday, November 14, 2016 at 6:01:24 PM UTC+5:30, Michael Jones wrote: > > This is funny in the sense that my programs are great at stressing the CPU > even though I don

[go-nuts] Stressing the system using

2016-11-14 Thread vyasgiridhar27
I have been working on this applications to stress the cpu, io and the hard drive. https://github.com/vyasgiridhar/gstress Kind of like stress . But i am unable to achieve high load. This might be due to the scheduling of goroutines. Is there a

[go-nuts] Garbage collector

2016-11-09 Thread vyasgiridhar27
Is there a way to overwork the garbage collector in go lang? -- 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. For more op