I have a client socket at my server end and what I want is to set Send buffer size for the socket just like I set Receive buffer size.Any idea on how I can set it? Because while sending huge data, the socket disconnects.
How to set Send Buffer Size for sockets in python
24.4k Views Asked by Biswarup Dass At
2
Use
socket.setsockopt()andSO_SNDBUF:Where
<value>is the buffer size you want to set as a Pythonint.Example:
See: setsockopt