No, I speak about
https://github.com/erlyvideo/erlyvideo/blob/master/apps/erlmedia/src/http_stream.erl
this piece of code is a very, very limited subset of ibrowse. But it
solves one very important for me problem: deliver large amount of
video data in thousands of simultaneous streams.
_______________________________________________
erlang-questions mailing list
erlang-q...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions
If I just need to grab a file, I'll call out to curl :)
It'd be nice to have a solid httpc module in the core. It *seems* that
httpc is close, but every now and then you'll spot some odd, hard to
reproduce buggy behavior. For me that was a while ago -- it may have
seen some improvements lately.
Garrett
On Sat, Feb 18, 2012 at 9:30 AM, Tristan Sloughter
<tristan....@gmail.com> wrote:Now to http clients instead of servers :)Over the years I've bounced between httpc, lhttpc and ibrowse (I thinkthat's all...) and was wondering what opinions people had on the 3 and whichare still developed and used in production.It seems ibrowse has the most features and most development going on.Though examples are lacking for all of them... So on a side note if anyonehas an example of posting form data with ibrowse that would be muchappreciated.
If I just need to grab a file, I'll call out to curl :)
I've used ibrowse in situations where I'm stuck behind a corporate
proxy and inets won't upgrade the socket to ssl, making it impossible
to access https urls. This was mentioned on the list and I'm pretty
sure it's on the 'TODO' list for the otp team to fix. Apart from that,
httpc has never let me down and the scenarios where I'm using ibrowse
are very lightweight, so I can't comment on its utility very broadly.
We used ibrowse for a while as well. We didn't have the high CPU bug, but we did have a lot of failed requests for which there was no reason for them to fail. The keepalive connection pooling seems to have some bugs. We also just went and implemented a really simple http library, that always creates a new tcp connection and closes when it's done.