Return-Path: william@bourbon.usc.edu Delivery-Date: Mon Sep 8 20:10:47 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on merlot.usc.edu X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3 Received: from bourbon.usc.edu (bourbon.usc.edu [128.125.9.75]) by merlot.usc.edu (8.14.1/8.14.1) with ESMTP id m893AklL030417 for ; Mon, 8 Sep 2008 20:10:46 -0700 Received: from bourbon.usc.edu (localhost.localdomain [127.0.0.1]) by bourbon.usc.edu (8.14.2/8.14.1) with ESMTP id m8939sfW013247 for ; Mon, 8 Sep 2008 20:09:54 -0700 Message-Id: <200809090309.m8939sfW013247@bourbon.usc.edu> To: cs551@merlot.usc.edu Subject: Re: cs551 warmup Date: Mon, 08 Sep 2008 20:09:54 -0700 From: Bill Cheng Someone wrote: > In case of malicious clients #3 and 4 where less than 10 bytes of header is > being passed to the server, shud we print out those 4 and 6 bytes or simply > send ALL_FAIL to the client without printing anything at the server side ? Please see my message with timestamp "Sun 07 Sep 07:49". > In case of #4, it is said if the client finishes before the server timeout > thts also fine but how will it finish if it has sent only 4 bytes of header. > Or does this mean that header sends 4 bytes, then waits for smtime and then > sends the rest of the data ? You don't need to know exactly what the malicious client is doing. You just need to make sure that your server behaves nicely. > In case of #3, what is required when it is meant that server shud attempt. > Shud it print out tht it has attempted because nothing is gonna show up at > the client side as it has closed the socket even if server sends ALL_FAIL If by the time the server tries to do this, the socket is not available for writing, so be it. If the server does not think the socket is closed, it should send ALL_FAIL. -- Bill Cheng // bill.cheng@usc.edu On Mon, Sep 8, 2008 at 6:57 PM, Bill Cheng wrote: > Someone wrote: > > > Is it acceptable if I print the IP of nunki at the server instead of the > > localhost (127.0.0.1) > > The adr command is to get the IP address given a hostname. > So, you should return the IP address if there is one. > -- > Bill Cheng // bill.cheng@usc.edu > >