Hard limits moved to limits.h

Limits used with SO_[RCV|SEND]BUF moved from gw.h to limits.h and
renamed so that the prefix is MXS_.
This commit is contained in:
Johan Wikman
2016-10-17 09:58:45 +03:00
parent 4faa7f8d21
commit 8aafa34d66
4 changed files with 46 additions and 18 deletions

View File

@ -323,7 +323,7 @@ gw_do_connect_to_backend(char *host, int port, int *fd)
/* prepare for connect */
setipaddress(&serv_addr.sin_addr, host);
serv_addr.sin_port = htons(port);
bufsize = GW_BACKEND_SO_SNDBUF;
bufsize = MXS_BACKEND_SO_SNDBUF;
if (setsockopt(so, SOL_SOCKET, SO_SNDBUF, &bufsize, sizeof(bufsize)) != 0)
{
@ -340,7 +340,7 @@ gw_do_connect_to_backend(char *host, int port, int *fd)
close_socket(so);
goto return_rv;
}
bufsize = GW_BACKEND_SO_RCVBUF;
bufsize = MXS_BACKEND_SO_RCVBUF;
if (setsockopt(so, SOL_SOCKET, SO_RCVBUF, &bufsize, sizeof(bufsize)) != 0)
{