[erlang-questions] Problems with ibrowse 1.5.2 - send_req not causing stream_to

Chandru chandrashekhar.mullaparthi@REDACTED
Thu Aug 27 11:50:06 CEST 2009


2009/8/27 Vik Olliver <vik@REDACTED>

> On 27/08/09 Chandru wrote:
>
>>  Could you please turn on ibrowse tracing and post the trace messages?
>>  It'll help in debugging.
>>
>
> Certainly. I've put the trace at:
>
> http://olliver.family.gen.nz/~vik/sanitised.acp_report.log<http://olliver.family.gen.nz/%7Evik/sanitised.acp_report.log>
>
> If you search for "697669" you'll see:
>
> =INFO REPORT==== 27-Aug-2009::13:28:37 ===
> (<0.234.0> ibrowse:379) do_send_req exiting with Ret ({ibrowse_req_id,
>                                                      {1251,336517,697669}})
> =INFO REPORT==== 27-Aug-2009::13:28:37 ===
> (<0.234.0> erms_http_connection:161) DEBUG: Get has ID {1251,336517,697669}
>
> =INFO REPORT==== 27-Aug-2009::13:28:37 ===
> (<0.234.0> erms_http_connection:151) "GREENPEACE-MO" GET "
> http://192.168.2.239/~gerald/erms/[redacted<http://192.168.2.239/%7Egerald/erms/%5Bredacted>for privacy reasons]
>
> The DEBUG line shows the req_id returned by send_req/5, the next line shows
> the http command which I've had to censor and rename to GREENPEACE but
> timing-wise is accurate and indicates we though we issued it.
>
> I can't find 697669 anywhere else in the trace. EndDeliver and EndDeliverOK
> are the {stream_to,self()}. If you think I can supply further debug info or
> try things out to assist, please ask.
>
>
May I see a bit of your code which handles the responses? For async
requests, if an error happens in handling them, ibrowse sends back:
{ibrowse_async_response, Req_id, Err} and never sends back a
{ibrowse_async_response_end, Req_id}.

Are you always waiting for the latter message? If not, I'll try to reproduce
the problem you have.

regards,
Chandru


More information about the erlang-questions mailing list