Made recv buffer smaller, large buffer size would sometimes cause bug if length was very large.