[go-nuts] Networking in Go

2025-03-10 Thread Kanak Bhatia
I want to learn networking in Go. What are the best resources to refer to and projects to practice? Would love some guidance. -- 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

[go-nuts] Re: Networking in Go

2025-03-11 Thread Kanak Bhatia
rking to you find challenging, opaque, bewildering? What > do you know already/what is your background so far? > > Best wishes, > Jason > > On Monday, March 10, 2025 at 5:48:10 PM UTC Kanak Bhatia wrote: > >> I want to learn networking in Go. What are the best resources to

[go-nuts] Re: Networking in Go

2025-03-13 Thread Kanak Bhatia
em into a reliable, infinite stream of bytes > between two hosts? I would minimize this at first to focus > on the essentials: how can you reliably get a 1000 byte blob from one > goroutine to another goroutine, when you must send it in > parts through a go channel of type "chan [10

[go-nuts] Go Raw UDP Socket on Windows — "An invalid argument was supplied" Error

2025-03-22 Thread Kanak Bhatia
Hey everyone, I’m trying to learn how to build a raw UDP socket in Go (on Windows) using golang.org/x/sys/windows. My goal is to send and receive raw UDP packets. *What I’m trying to do:* 1. *Create a raw socket:* socket, err := windows.Socket(windows.AF_INET, windows.SOCK_RAW, windows.IPP

Re: [go-nuts] Re: Goroutines and channels optimization

2025-05-11 Thread Kanak Bhatia
ou need to parallelize that > (RAID etc) and the kernel access. > > Often for massive uploads you might even partition the job across machines > each with a portion of the data set. > > On May 11, 2025, at 11:04 AM, Kanak Bhatia > wrote: > >  > > Does we have any k

Re: [go-nuts] Re: Goroutines and channels optimization

2025-05-11 Thread Kanak Bhatia
xt=Cloud%20performance%20tuning%20is%20the,%2C%20errors%2C%20and%20resource%20wastage. > > But this is probably more focused > https://cloud.google.com/blog/topics/developers-practitioners/optimize-cloud-storage-upload-performance-client-libraries > > On May 11, 2025, at 11:24 AM, Ka

Re: [go-nuts] Re: Goroutines and channels optimization

2025-05-11 Thread Kanak Bhatia
ffered by the service. If you are not reaching > those limits you should increase the parallelism until you do. If your cpu > becomes saturated first you probably need larger buffer sizes in the I/o. > > On Thursday, May 8, 2025 at 3:48:36 PM UTC-5 Kanak Bhatia wrote: > >> D

[go-nuts] Goroutines and channels optimization

2025-05-08 Thread Kanak Bhatia
Does anyone have idea how to optimize consumers, producers and channels using golang. I have to upload a million objects to a cloud object storage, but unable to get a optimzed values for above parametres. Producers used to create objects and send data through channels and receive them at cons

[go-nuts] S2 Compression Index

2025-06-02 Thread Kanak Bhatia
Hi Everyone, I’m currently working with MinIO and diving into its use of s2 compression for optimizing object storage performance. One area I’m curious about is the S2 compression index and whether there are feasible techniques to compact or optimize it further. I’m trying to determine if comp

[go-nuts] io.CopyN occasionally fails with unexpected EOF on large ranged reads

2025-07-07 Thread Kanak Bhatia
Hi all, I'm encountering an intermittent issue while using io.CopyN to copy 129MB object from reader to writer. The problem: On some iterations, io.CopyN(dst, src, n) fails with unexpected EOF even though the same logic succeeds in most runs. The failure typically happens after 125–130 MB and

Re: [go-nuts] io.CopyN occasionally fails with unexpected EOF on large ranged reads

2025-07-07 Thread Kanak Bhatia
tTime, "", "Incorrect read bytes v/s original buffer", err) return } fmt.Println("cmpData: byte comparison successful — data matches original buffer") } On Mon, Jul 7, 2025 at

Re: [go-nuts] io.CopyN occasionally fails with unexpected EOF on large ranged reads

2025-07-07 Thread Kanak Bhatia
Using windows 11 + wsl On Mon, 7 Jul 2025, 23:51 Robert Engels, wrote: >  > I suspect you maybe have an anti virus software (or something like it) > that is messing up by reading/interrupting the process. What OS? > > On Jul 7, 2025, at 1:14 PM, Kanak Bhatia wrote: > >

Re: [go-nuts] io.CopyN occasionally fails with unexpected EOF on large ranged reads

2025-07-07 Thread Kanak Bhatia
I meant windows 11, but i am using wsl internally for everything On Mon, 7 Jul 2025, 23:52 Kanak Bhatia, wrote: > Using windows 11 + wsl > > On Mon, 7 Jul 2025, 23:51 Robert Engels, wrote: > >>  >> I suspect you maybe have an anti virus software (or something like it)

Re: [go-nuts] io.CopyN occasionally fails with unexpected EOF on large ranged reads

2025-07-09 Thread Kanak Bhatia
Hi All, You were right. There is underlying Minio Sever side code issue which breaks ths connection sometimes of reader used in copyN resulting in unexpectedEOF. On Tue, 8 Jul 2025, 06:30 Kanak Bhatia, wrote: > Sure. Will share it. > > On Tue, 8 Jul 2025, 02:46 'Brian Candler&#x