Add MSG_NOSIGNAL flag to socket send() function, preventing unexpected exit if site prematurely closes connection. Also put desired number of pages to get in macros.