Old mod_xfer.c.patch
1 *** ./proftpd-1.2.10rc1/modules/mod_xfer.c.orig Tue Jan 17 00:47:23 2006
2 --- ./proftpd-1.2.10rc1/modules/mod_xfer.c Tue Jan 17 00:48:01 2006
3 ***************
4 *** 683,689 ****
5 /* Note: TCP_CORK is a Linuxism, introduced with the 2.4 kernel. It
6 * has effects similar to BSD's TCP_NOPUSH option.
7 */
8 ! if (setsockopt(PR_NETIO_FD(session.d->outstrm), SOL_TCP, TCP_CORK, &on,
9 len) < 0)
10 pr_log_pri(PR_LOG_NOTICE, "error setting TCP_CORK: %s", strerror(errno));
11 #endif /* TCP_CORK */
12 --- 683,689 ----
13 /* Note: TCP_CORK is a Linuxism, introduced with the 2.4 kernel. It
14 * has effects similar to BSD's TCP_NOPUSH option.
15 */
16 ! if (setsockopt(PR_NETIO_FD(session.d->outstrm), IPPROTO_TCP, TCP_CORK, &on,
17 len) < 0)
18 pr_log_pri(PR_LOG_NOTICE, "error setting TCP_CORK: %s", strerror(errno));
19 #endif /* TCP_CORK */
20 ***************
21 *** 699,705 ****
22
23 #ifdef TCP_CORK
24 on = 0;
25 ! if (setsockopt(PR_NETIO_FD(session.d->outstrm), SOL_TCP, TCP_CORK, &on,
26 len) < 0)
27 pr_log_pri(PR_LOG_NOTICE, "error setting TCP_CORK: %s", strerror(errno));
28 #endif /* TCP_CORK */
29 --- 699,705 ----
30
31 #ifdef TCP_CORK
32 on = 0;
33 ! if (setsockopt(PR_NETIO_FD(session.d->outstrm), IPPROTO_TCP, TCP_CORK, &on,
34 len) < 0)
35 pr_log_pri(PR_LOG_NOTICE, "error setting TCP_CORK: %s", strerror(errno));
36 #endif /* TCP_CORK */