setting buffer as well as recvbuffer seems to actually solve the problem lol, this is what I get for not reading docs closely enough