summaryrefslogtreecommitdiff
path: root/sys/src/cmd/ip/httpfile.c
AgeCommit message (Collapse)Author
2015-07-23ip/httpfile: fix flushes, fix concurrent reads, set error stringcinap_lenrek
Tflush handling was wrong, we cannot respond to the old request if we have not actually removed the req from the in progress block queue. when reads are issued concurrently, we have to set b->len before the block is inserted into the inprogress list. otherwise findblock() is unable to find it and no requests can be queued on the block. this caused the same offset to be downloaded multiple times. set the errstr in getrange() so in case of an error, we dont get some random previous error string.
2015-07-13httpfile: fix evictblock() so we wont consume all the memorycinap_lenrek
2014-11-12httpfile: use webfs, fix 9p flushescinap_lenrek
we can improve performance alot by using webfs which does http keep alives for us, so connection setup overhead is eleminated. fix 9p flushes and double frees.
2013-09-14tls: fix various tlsClient()/tlsServer() related bugscinap_lenrek
- TLSconn structure on stack but not initialized (zeroed) - original filedescriptor double closed in error case - original filedescriptor leaked in success case - leaked TLSconn.sessionID and TLSconn.cert - clarify in pushtls(2) and pushssl(2)
2013-01-31httpfile: fix range requestscinap_lenrek
byte ranges use closed intervals (inclusive first and last byte offsets)
2011-03-30Import sources from 2011-03-30 iso image - libTaru Karttunen
2011-03-30Import sources from 2011-03-30 iso imageTaru Karttunen