~clint-fewbar/ubuntu/precise/squid3/ignore-sighup-early

« back to all changes in this revision

Viewing changes to tools/squidclient.cc

  • Committer: Bazaar Package Importer
  • Author(s): Luigi Gangitano
  • Date: 2008-07-21 09:20:31 UTC
  • mfrom: (1.1.7 upstream) (3.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080721092031-bj8vog645lw6487u
Tags: 3.0.STABLE8-1
* Urgency high to meet freeze deadline

* New upstream release

* debian/patches/10-mgr_active_requests
  - Added upstream patch fixing delay_pool reporting in cachemgr.cgi

Show diffs side-by-side

added added

removed removed

Lines of Context:
86
86
#include "util.h"
87
87
 
88
88
#ifndef BUFSIZ
89
 
#define BUFSIZ 8192
 
89
#define BUFSIZ          8192
 
90
#endif
 
91
#ifndef MESSAGELEN
 
92
#define MESSAGELEN      65536
 
93
#endif
 
94
#ifndef HEADERLEN
 
95
#define HEADERLEN       65536
90
96
#endif
91
97
 
92
98
typedef void SIGHDLR(int sig);
110
116
int total_bytes = 0;
111
117
int io_timeout = 120;
112
118
 
 
119
#ifdef _SQUID_MSWIN_
 
120
void
 
121
Win32SockCleanup(void)
 
122
{
 
123
    WSACleanup();
 
124
    return;
 
125
}
 
126
#endif /* ifdef _SQUID_MSWIN_ */
 
127
 
113
128
static void
114
129
usage(const char *progname)
115
130
{
151
166
    int opt_noaccept = 0;
152
167
    int opt_verbose = 0;
153
168
    const char *hostname, *localhost;
154
 
    char url[BUFSIZ], msg[49152], buf[BUFSIZ];
155
 
    char extra_hdrs[32768];
 
169
    char url[BUFSIZ], msg[MESSAGELEN], buf[BUFSIZ];
 
170
    char extra_hdrs[HEADERLEN];
156
171
    const char *method = "GET";
157
172
    extern char *optarg;
158
173
    time_t ims = 0;
313
328
    {
314
329
        WSADATA wsaData;
315
330
        WSAStartup(2, &wsaData);
 
331
        atexit(Win32SockCleanup);
316
332
    }
317
333
#endif
318
334
    /* Build the HTTP request */