Skip to content

Commit

Permalink
fixed minor bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Dipert committed Dec 15, 2008
1 parent 09b60e1 commit e7c77fc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
14 changes: 10 additions & 4 deletions curl.c
Expand Up @@ -38,11 +38,17 @@ int doFetch(struct extRequest *req) {
*
* 1. Check for a file named req->hash.
* 2. If it exists, pipe it to cgiOut and return success.
* 3. If it doesn't exist, create a new file named req->hash.
* Open a file descriptor for the new file, and pass this as
* 3.
* 3a. If it doesn't exist, check the lock file to see if
* a cached object is in the process of being created.
* 3b. If it is, sleep for a period of time and check again.
* 3c. If it is not, create a new file named req->hash.
* Write the hash to the lock.
* 3d. Open a file descriptor for the new file, and pass this as
* the second parameter of the appropriate do*Req function.
* 3a. Open the new file and pass its contents to cgiOut.
* 3b. Return success.
* 3e. Write the hash to a lock file.
* 3f. Open the new file and pass its contents to cgiOut.
* 3g. Return success.
*/
}
}
Expand Down
1 change: 1 addition & 0 deletions jsonptunnel.h
Expand Up @@ -55,6 +55,7 @@ int parseArguments(struct extRequest *req);
int parseCache(struct extRequest *req);
int parseMethod(struct extRequest *req);
int parseURL(struct extRequest *req);
int parseCallback(struct extRequest *req);
void exitStatus(int status, char *msg);
void freeReq(struct extRequest *req);
void printParams(struct extRequest *req);
Expand Down

0 comments on commit e7c77fc

Please sign in to comment.