cs431 icon indicating copy to clipboard operation
cs431 copied to clipboard

[Homework 1] Parallel Web Server with Cache (due: 2022-09-25 23:59:59)

Open Lee-Janggun opened this issue 2 years ago • 11 comments

Implement a parallel web server with cache.

  • Read this manual for general advice on homework. The manual contains skeleton code that serves as a starting point. You're going to fill out the todo!()s.

    • IMPORTANT: don't fork this repository. It'll be public!
  • Documentation & Tips.

  • You can grade your solution yourself by running ./script/grade-1.sh in the homework directory. If the server's evaluation results differ from your own evaluation results, please let us know.

  • Submit your code here. You can create the zip to submit as follows:

    cd cs431/homework
    ./scripts/submit.sh
    ls ./target/hw-hello_server.zip     # file to submit
    
  • IMPORTANT: only the last submission counts. Please make sure the last line of the "log" says "Score: ?? / ??".

Lee-Janggun avatar Aug 30 '22 07:08 Lee-Janggun

Update: Rust is fixed to an old nightly due to a thread sanitizer bug #607 . Please rebase your homework on top of https://github.com/kaist-cp/cs431/commit/e0c5a2218f5dbd6430b02d8fa4f648a504f3af1d.

Lee-Janggun avatar Aug 30 '22 13:08 Lee-Janggun

Update: I made a proper fix for #607 in https://github.com/kaist-cp/cs431/commit/46df4c1aa1657ae25889e1cb538bff09223b7d9e. Please rebase your homework on top of it.

Additionally, All submissions so far are nullified. Please submit again. The lesson: always carefully read the documentation :)

Lee-Janggun avatar Aug 30 '22 16:08 Lee-Janggun

@Lee-Janggun Can you please check the cp-service.kaist.ac.kr server state? I and my friends cannot access to it - Connection Timeout - from an hour ago.

cskwak99 avatar Aug 31 '22 07:08 cskwak99

@cskwak99 can you try again now?

Lee-Janggun avatar Aug 31 '22 08:08 Lee-Janggun

@cskwak99 can you try again now?

Now it works well! Thank you.

cskwak99 avatar Aug 31 '22 08:08 cskwak99

Update: I have enforced fmt and clippy in the grading script with some tweaks. (https://github.com/kaist-cp/cs431/commit/0fab2c730a6c632ec673e7a06afb9614d152ca77). All submissions so far are nullified. Please submit again.

  • Now you should not see the >100 warnings that appeared when compiling your homework or when submitting.
  • On the other hand, you must pass the linters to be able to (re)submit.
  • Enforcing a linter forces one to write more ergonomic and correct Rust code (e.g, clippy warns when references are dropped, which is a no-op).

Lee-Janggun avatar Sep 02 '22 06:09 Lee-Janggun

It seems curl is not installed yet. While installing rustup in the server, curl: command not found error appears.

smpak19 avatar Sep 02 '22 07:09 smpak19

@smpak19 Can you try again?

Lee-Janggun avatar Sep 02 '22 07:09 Lee-Janggun

@Lee-Janggun Thank you! Solved :)

smpak19 avatar Sep 02 '22 07:09 smpak19

I found out that grade-1.sh no longer exists in the scripts folder. What would be the change file name of it?

CastOrdo avatar Sep 04 '22 06:09 CastOrdo

I found out that grade-1.sh no longer exists in the scripts folder. What would be the change file name of it?

I updated the documentation file as well, so please check it.

Lee-Janggun avatar Sep 05 '22 00:09 Lee-Janggun

I was using cs431 server according to README at kaist-cp/431 and it worked before 9/18 7-8:pm. But suddenly I can't access cs431 server via vscode ssh remote. And error is like picture1 vscodeserver_install_fail (picture1)

So, I checked ssh-key but there is my ssh-key in authorized_keys. ed25519incs431server (picture2)

After I googled it, I found answer that I have to delete .vscode-server but I can't delete it like picture3. cannotdeletevscodeserver (picture3) Do you know what should I do?

dripcharacter avatar Sep 18 '22 16:09 dripcharacter

@dripcharacter

  1. Please open a separate issue for this, and don't use images.
  2. The server can lag when deleting many files at once. Do you still have the same problem after disconnecting/reconnecting?

Lee-Janggun avatar Sep 19 '22 01:09 Lee-Janggun

First, sorry for mismaking issue and using images. After doing with https://stackoverflow.com/questions/67374506/visual-studio-code-remote-ssh-no-longer-working-waiting-for-server-log, I can connect to vscode ssh to cs431 server. Thank you.

dripcharacter avatar Sep 19 '22 02:09 dripcharacter