Re: [Owfs-developers] Two owserver problems

2009-06-09 Thread Christian Magnusson
Listen() in ow_net_server.c handles #1 automatically, more or less... It's set to handle 10 requests today, and according to the man-pages you see this: "If a connection request arrives when the queue is full, the client may receive an error with an indication of ECONNREFUSED or, if the underl

Re: [Owfs-developers] Two owserver problems

2009-06-09 Thread Steinar Midtskogen
Hi Paul, > I'm not sure of the best way to handle this. Some thoughts: > 1. limit the total requests being processed at the same time, >A by not accepting new sockets until there is space, or >B. by returning an EBUSY error message. > 2. try to merge requests. (Only works if the same requ

Re: [Owfs-developers] Two owserver problems

2009-06-09 Thread Paul Alfille
Hi Steinar, I've been playing with your setup, and noticed one design problem right away -- currently there is no throttling of the number of queries queued by owserver. The loop can wrap around while owserver is still busy with the prior set of requests. I'm not sure of the best way to handle th