Oded Arbel wrote:
> 
> Speaking of sendsms' HTTP interface - I've noticed that sendsms doesn't
> honor the 'Connection: close' header and always use keep-alive. can that be
> fixed, please ?

I had a look in gwlib/http.c:899 where the following is inside
handle_transaction():

[...]
    h = http_header_find_first(trans->response->headers,
"Connection");
    if (h != NULL && octstr_compare(h, octstr_imm("close")) == 0)
        trans->persistent = 0;
    octstr_destroy(h);

#if 1 /* Reuse enabled again, let's see if anyone complains... */
    if (trans->persistent)
        conn_pool_put(trans->conn, trans->host, trans->port);
    else
#endif
        conn_destroy(trans->conn);
[...]

this seems to honor the "Connection: close" statement, didn't it?!

Can you describe how we can reproduce the effect you see, so that we
may analyze ourselfs?!

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

Reply via email to