View | Details | Raw Unified | Return to ticket 1154
Collapse All | Expand All

(-)a/src/common/net.c (-1 / +1 lines)
Lines 168-174 int readn(int fd, void *buf, size_t nbytes) Link Here
168
	return(n);
168
	return(n);
169
}
169
}
170
170
171
int net_set_low_water(int sock, size_t size)
171
int net_set_low_water(int sock, int size)
172
{
172
{
173
	if (setsockopt(sock, SOL_SOCKET, SO_RCVLOWAT,
173
	if (setsockopt(sock, SOL_SOCKET, SO_RCVLOWAT,
174
		       (const void *) &size, sizeof(size)) < 0) {
174
		       (const void *) &size, sizeof(size)) < 0) {
(-)a/src/common/net.h (-1 / +1 lines)
Lines 59-65 extern int net_accept_stream(int fd); Link Here
59
59
60
/* set low water mark on socket
60
/* set low water mark on socket
61
 */
61
 */
62
extern int net_set_low_water(int sock, size_t size);
62
extern int net_set_low_water(int sock, int size);
63
63
64
/* set keep alive time on socket */
64
/* set keep alive time on socket */
65
extern int net_set_keep_alive(int sock);
65
extern int net_set_keep_alive(int sock);

Return to ticket 1154