~ubuntu-branches/ubuntu/trusty/haproxy/trusty

« back to all changes in this revision

Viewing changes to src/proxy.c

  • Committer: Bazaar Package Importer
  • Author(s): Arnaud Cornet
  • Date: 2009-10-19 22:31:45 UTC
  • mfrom: (1.1.7 upstream) (2.1.6 sid)
  • Revision ID: james.westby@ubuntu.com-20091019223145-259fs24dejjixo1f
New upstream bugfix release

Show diffs side-by-side

added added

removed removed

Lines of Context:
303
303
 * at the end of the configuration parsing if the proxy is not in http mode.
304
304
 * The <file> argument is used to construct the error message.
305
305
 */
306
 
int proxy_cfg_ensure_no_http(struct proxy *curproxy, const char *file)
 
306
int proxy_cfg_ensure_no_http(struct proxy *curproxy)
307
307
{
308
308
        if (curproxy->cookie_name != NULL) {
309
 
                Warning("parsing %s : cookie will be ignored for %s '%s' (needs 'mode http').\n",
310
 
                        file, proxy_type_str(curproxy), curproxy->id);
 
309
                Warning("config : cookie will be ignored for %s '%s' (needs 'mode http').\n",
 
310
                        proxy_type_str(curproxy), curproxy->id);
311
311
        }
312
312
        if (curproxy->rsp_exp != NULL) {
313
 
                Warning("parsing %s : server regular expressions will be ignored for %s '%s' (needs 'mode http').\n",
314
 
                        file, proxy_type_str(curproxy), curproxy->id);
 
313
                Warning("config : server regular expressions will be ignored for %s '%s' (needs 'mode http').\n",
 
314
                        proxy_type_str(curproxy), curproxy->id);
315
315
        }
316
316
        if (curproxy->req_exp != NULL) {
317
 
                Warning("parsing %s : client regular expressions will be ignored for %s '%s' (needs 'mode http').\n",
318
 
                        file, proxy_type_str(curproxy), curproxy->id);
 
317
                Warning("config : client regular expressions will be ignored for %s '%s' (needs 'mode http').\n",
 
318
                        proxy_type_str(curproxy), curproxy->id);
319
319
        }
320
320
        if (curproxy->monitor_uri != NULL) {
321
 
                Warning("parsing %s : monitor-uri will be ignored for %s '%s' (needs 'mode http').\n",
322
 
                        file, proxy_type_str(curproxy), curproxy->id);
 
321
                Warning("config : monitor-uri will be ignored for %s '%s' (needs 'mode http').\n",
 
322
                        proxy_type_str(curproxy), curproxy->id);
323
323
        }
324
324
        if (curproxy->lbprm.algo & BE_LB_PROP_L7) {
325
325
                curproxy->lbprm.algo &= ~BE_LB_ALGO;
326
326
                curproxy->lbprm.algo |= BE_LB_ALGO_RR;
327
 
                Warning("parsing %s : Layer 7 hash not possible for %s '%s' (needs 'mode http'). Falling back to round robin.\n",
328
 
                        file, proxy_type_str(curproxy), curproxy->id);
 
327
                Warning("config : Layer 7 hash not possible for %s '%s' (needs 'mode http'). Falling back to round robin.\n",
 
328
                        proxy_type_str(curproxy), curproxy->id);
329
329
        }
330
330
        return 0;
331
331
}