[ee122] timeouts

Lisa Fowler fowler at eecs.berkeley.edu
Sat Sep 22 22:13:35 PDT 2007


I hit reply before properly replying.

On 9/22/07, Lisa Fowler <fowler at eecs.berkeley.edu> wrote:
> On 9/22/07, Nescio Nomen <nescionomen at gmail.com> wrote:
> > Do we have to implement some kind of timeout anywhere in our code?  I don't
> > think the specs mention it, and I see that Beej and most other people do not
> > implement a time out for example in select().

This is the part for you to decide.

> > Also, if we get some kind of error in our server code (eg an accept() fails
> > at some point or read() returns -1), we should *always* just print an error
> > and terminate with exit(1), and *not*, for example, try to recover and
> > continue listening for more clients.  Should we ever attempt a recovery?

THIS part, we decide.  And we decide that you should not attempt
recovery if it's an error like what you describe.

-Lisa


More information about the ee122 mailing list