Re: Method not supported problem

Stipe Tolj <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Organization Wapme Systems AG
Message-ID <[email protected]>
I guess this would apply also then for the above if clause:

...
 if (octstr_str_compare(method, "GET")  == 0 &&
        octstr_compare(url, magic_url) == 0) {
        ret = HTTP_OK;
        resp_headers = list_create();
        http_header_add(resp_headers, "Content-Type",
"text/vnd.wap.wml");
        content_body = octstr_create(HEALTH_DECK);
        octstr_destroy(request_body);
        return_reply(ret, content_body, resp_headers, client_SDU_size,
                     event, session_id, url, x_wap_tod,
actual_headers);
        wap_event_destroy(event);
        http_destroy_headers(actual_headers);
 } else if ...
...

Basically 

List *http_create_empty_headers(void)
{
    gwlib_assert_init();
    return list_create();
}

does the same as resp_headers = list_create(); but checking if the
gwlib routines have been initialized.

Has anybody measured the impact concerning performance for this check
on a (very) high load system?!

Stipe

[email protected]
-------------------------------------------------------------------
Wapme Systems AG

Münsterstr. 248
40470 Düsseldorf

Tel: +49-211-74845-0
Fax: +49-211-74845-299

E-Mail: [email protected]
Internet: http://www.wapme-systems.de
-------------------------------------------------------------------
wapme.net - wherever you are
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.