]> git.proxmox.com Git - mirror_edk2.git/commit - StdLib/EfiSocketLib/Tcp4.c
Fix read issue detected by the following Python program. The issue was that the...
authorlpleahy <lpleahy@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 5 Mar 2012 19:05:47 +0000 (19:05 +0000)
committerlpleahy <lpleahy@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 5 Mar 2012 19:05:47 +0000 (19:05 +0000)
commitfcb6f89d0176c3fa28a20cf3d958ee91f9c18799
tree18848335adaab956ed8230057abb28802084639f
parent50b43b1506f927f94f7e655e6f2c2a27413f8914
Fix read issue detected by the following Python program.  The issue was that the caller's buffer pointer was not being advanced between segments of the read data.

Signed-off-by: lpleahy
-----  UnbufferedRead.py  -----

import httplib
conn = httplib.HTTPConnection("10.241.97.30")
conn.request('GET', '/')
resp = conn.getresponse(buffering=True)
if resp.status != 200:
   print "status:", resp.status
   print "aborting"
   sys.exit(1)
while True:
   chunk = resp.read()
   if not chunk:
       break
   print chunk

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13077 6f19259b-4bc3-4df7-8a09-765794883524
StdLib/EfiSocketLib/Tcp4.c
StdLib/EfiSocketLib/Tcp6.c