|
|
| Author |
Message |
|
| billy-rat |
Posted: Sun May 17, 2009 10:42 am |
|
|
|
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. |
|
|
| Back to top |
|
| bpuzon |
Posted: Fri Aug 07, 2009 1:31 pm |
|
|
|
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 camerasCode: inets:start(httpc, {profile, ProfileName}) |
|
|
| Back to top |
|
| billy-rat |
Posted: Fri Aug 07, 2009 7:31 pm |
|
|
|
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. |
|
|
| Back to top |
|
| baryluk |
Posted: Tue Aug 18, 2009 10:10 am |
|
|
|
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. |
|
|
| Back to top |
|
|
|
All times are GMT
|
|
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
|
|
|