[187] in 6.033-lab

home help back first fref pref prev next nref lref last post

http.c, efence, and turnin

daemon@ATHENA.MIT.EDU (Benjie Chen)
Sun Mar 12 16:24:32 2000

From: Benjie Chen <benjie@cag.lcs.mit.edu>
Message-Id: <200003122124.QAA14840@amsterdam.lcs.mit.edu>
To: 6.033-lab@MIT.EDU
Date: Sun, 12 Mar 2000 16:24:23 -0500 (EST)
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi gang. 3 things.

1. The following lines fix a bug in http.c. Thanks to Timo who
   pointed this out:

   ptr = m->head;
*  m->head = xrealloc(m->head, m->len+len+1);
   memmove(m->head+m->len, buffer, len);
+  *(m->head+m->len+len) = '\0';
   m->len += len;
   http_realloc_ptrs(m, ptr, m->head);

   The line marked with "*" is modified, the line with "+" is new.
   Again, sorry about these bugs.

2. If you want to get your program linked with efence, you need to 
   redefine the macros in async.h: xfree should be redefined as free,
   and xmalloc should be redefined as malloc. 

3. Tomorrow, after you are done with the proxy, tar it up and put it
   in your turnins directory. Call it webproxy.tar. It is due at
   5pm in your locker.

Email me if you have questions.

Benjie
   

-- 
Benjie Chen
benjie@lcs.mit.edu

home help back first fref pref prev next nref lref last post