Questions tagged [server2]
The server2 tag has no usage guidance.
9
questions
0
votes
1answer
58 views
Pset6: load() and indexes() fail check50 server2 (but parse() and lookup() pass check50 server1)
Have been going around in circles for days over Pset6. Pretty confident my lookup and parse functions are correct (and they pass check50 server1), but it's all gone very wrong with load and indexes.
...
0
votes
1answer
42 views
PSET6 Server - fails the request two files in a row check
My server fails the last check in check50-server2 - "request two files in a row"
Because it only fails that test I'm assuming the problem is somewhere in the parse or lookup functions. Valgrind shows ...
0
votes
1answer
40 views
pset6 server2 /dir/ malloc [SOLVED]
I can access perfectly to directories, but check50 doesn't agree:
$ check50 2015.fall.pset6.server2 server.c
:) server.c exists
:) server compiles
:) Requesting cat.jpg returns 200, image/jpeg, and ...
0
votes
2answers
61 views
pset6 server2 parse() strtok() NULL [solved]
This bug was first found here:
pset6 server2 load() fseek() return -1 [SOLVED]
I posted it here to distinguish it from that other bug.
Check50:
$ check50 2015.fall.pset6.server2 server.c
:) server.c ...
0
votes
1answer
55 views
pset6 server2 load() fseek() return -1 [SOLVED]
I'm almost done with this one. However I have one more bug that I can't resolve.
fseek is returning -1 only for some cases.
errno's value is 29 after ftell, if that helps.
check50 says:
$ check50 ...
0
votes
1answer
36 views
pset6 server2 transfer() killed by server
check50 says this:
$ check50 2015.fall.pset6.server2 server.c
:) server.c exists
:) server compiles
:( Requesting cat.jpg returns 200, image/jpeg, and correct image
\ killed by server
:( ...
0
votes
1answer
29 views
Many of the checks turn out “wrong”, but I've done them the same way
I've been working my way through the second half of PSET6, server 2, and this is what I get when I try check50:
:) server.c exists
:) server compiles
:( Requesting cat.jpg returns 200, image/jpeg, ...
0
votes
1answer
84 views
pset6 Server.c compiles but server not working
I'm convinced that the issues lie within my parse and/or load function but can't seem to identify them. Maybe I'm incorrectly allocating memory?? I'm not sure. Can someone please help me out?
Here's ...
0
votes
1answer
93 views
Pset6 server2 passed all check50 tests but 2
I can't figure out why I am failing 2 tests in check50.
Here is my code:
bool load(FILE* file, BYTE** content, size_t* length)
{
if (file == NULL) {
return false;
}
int temp = 0;
*length = 0;
...