[cse491] Lab 7 changes

Joe Amenta amentajo at msu.edu
Fri Oct 16 14:32:30 PDT 2009


Also, there's this in the lab notes:

Next, get your 'server_forever' and __main__ code working (it should
all still work as in HW #5).

--Joe

On Fri, Oct 16, 2009 at 5:31 PM, Joe Amenta <amentajo at msu.edu> wrote:
> A little bit of an ambiguity...  in the homework notes, you write:
>     Server.handle_forever() must bind to the given port and serve HTTP
> requests on it forever, calling the WSGI app object for each request.
>
> But in the lab notes, you write:
>     write a method 'Server.serve_forever()' that does your main while loop.
>     change your __main__ block to run Server.serve_forever() on the
> appropriate port.
>
> Which is it?
>
> *ducks the shoe Titus is about to throw*
>
> --Joe
>
> On Fri, Oct 16, 2009 at 11:23 AM, C. Titus Brown <ctb at msu.edu> wrote:
>>
>> thanks again!
>>
>> On Thu, Oct 15, 2009 at 05:40:10PM -0400, Joe Amenta wrote:
>> > Also, don't forget to change environ['wsgi_input'] to environ['wsgi.input'].
>> >
>> > --Joe
>> >
>> > On Thu, Oct 15, 2009 at 05:16:54PM -0400, Joe Amenta wrote:
>> > > Don't forget to:
>> > > --def WSGIApp(object) -> class WSGIApp(object)
>> > > --return ['Hello, world'] -> return iter(['Hello, world'])
>> > >
>> > > --Joe
>>
>> --
>> C. Titus Brown, ctb at msu.edu
>



More information about the cse491-fall-2009 mailing list