Using inets http client

Michael McDaniel <>
Sun Jun 5 19:15:57 CEST 2005


On Sun, Jun 05, 2005 at 05:38:36PM +0100, Will Newton wrote:
> On Sunday 05 June 2005 05:48, Michael McDaniel wrote:
> 
> > Now I also am confused about why this is not working.
> >
> > Interestingly, this
> 
> Yes, you're right. It's almost as if the function call 
> http_wait_with_timeout/2 makes the message go missing or changes the pid 
> or... I can't really figure it out. I'm rather new to Erlang and this is well 
> beyond my knowledge. :)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
I do not think it is a pid issue,  io:format('~p~n', [self()])   shows
same pid in each fun.

> 
> > Any help from others about the original code is welcome.
> 
> One other question I had: I am assuming my http_wait_with_timeout/2 function 
> will have the tail call eliminated by the compiler. Is there some way I can 
> test whether this is happening or not or do I have to rely on inspecting the 
> code?
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Best as I understand it, either
1) code inspection
2) let it run until it uses all the memory <smile>

~Michael



More information about the erlang-questions mailing list