Erlang/OTP Forums

Author Message

<  Open Telecom Platform (OTP)  ~  Inets is not concurrent?

billy-rat
Posted: Sun May 17, 2009 10:42 am Reply with quote
Joined: 09 Apr 2008 Posts: 4
Hi,

I try to fetch images from multiple camera devices over http:request. For every camera exists one process which fetchs an image every 250ms. This works fine while all devices are online. If http:request returns an error, the complete application slowes down. I dont want do kill the "offline" process because the camera could be online next time.

Is it possible to tell inets to run multiple processes? Or do I have to write my own "oldschool" http:request?

kind regards
billy

PS: Sorry for my bad english.
View user's profile Send private message
bpuzon
Posted: Fri Aug 07, 2009 1:31 pm Reply with quote
User Joined: 05 Aug 2009 Posts: 23 Location: Cracow, Poland
Not sure if I understood 'complete application slows down', but you may want to try using different httpc profiles for different cameras
Code:
inets:start(httpc, {profile, ProfileName})
View user's profile Send private message Visit poster's website
billy-rat
Posted: Fri Aug 07, 2009 7:31 pm Reply with quote
Joined: 09 Apr 2008 Posts: 4
The problem is that each connection goes through one inets process. But one inets process can handle only one connection at a time.

I never tried to start more than one inets processes with multiple profiles.

Thank you for the hint.
View user's profile Send private message
baryluk
Posted: Tue Aug 18, 2009 10:10 am Reply with quote
User Joined: 05 Aug 2009 Posts: 48
Profiles limits numer of connections. Use separate profiles (remember to destroy them if nacassary) for lots of concurant requests.
View user's profile Send private message

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum