-
Notifications
You must be signed in to change notification settings - Fork 388
[4단계 - Tomcat 구현하기] 마크(김승현) 미션 제출합니다. #751
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
fed02f6
7e91356
4a259b5
fddfdc6
1d08960
90931d9
7319283
ba5010d
c037870
7d4f988
38a85a1
721b7e9
6f53481
db007a2
36c22be
add93cd
7f37783
7497b66
a633a27
34d44a6
837933e
1b6cb98
0125570
4109760
b3de68a
ac157e2
c3c3791
1ceb56d
47f234f
4d930c8
8162290
351db10
4185398
f733f4a
9dd3ef8
759226d
0b20278
82f6c1d
b28e846
66207c9
f1ed4ab
208e594
0e2df52
f1a1cac
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,6 @@ | ||
| package thread.stage2; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. stage1의 학습테스트도 LMS에 기재된 것처럼 실패하도록 실행시켜 본 후, 통과하도록 해보는 것도 있으면 좋겠네요 ! 😊
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 스레드 강의 끝나고 팀원들과 같이 진행해보았는데 추가 코드를 말씀하신걸까요? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 스레드 기준으로 디버거를 돌려도 테스트에 통과할 수 있도록 학습해보면 좋을 것 같다는 의도였어요 ! (커밋 내역에 없어서 여기까지는 안 해보신 줄 알고 😅) 팀원들과 같이 진행해보셨다니! 좋네요 👍 |
||
|
|
||
| import org.junit.jupiter.api.Disabled; | ||
| import org.junit.jupiter.api.Test; | ||
|
|
||
| import java.net.http.HttpResponse; | ||
|
|
@@ -21,6 +22,7 @@ class AppTest { | |
| * - http call count | ||
| * - 테스트 결과값 | ||
| */ | ||
| @Disabled // 테스트를 실행시키기 위해서 thred.stage2.App을 실행하고 @Disabled를 제거하세요. | ||
| @Test | ||
| void test() throws Exception { | ||
| final var NUMBER_OF_THREAD = 10; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
accept-count를 0으로 변경한 이유가 궁금해요 ! 🙋🏻♀️There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
테스트에서 명확하게 2개의 요청만 처리하기위해 설정했어요!
tomcat 공식문서를 통해 accept-count 를 listen 함수의 backlog 인자라고 이해를 했어요. 0으로 설정함으로써 이미 max-connections 만큼 연결됐을 때 추가 연결 요청을 무시할 수 있다고 생각했어요.
하지만
라고 명시되어 있기 때문에 맥 운영체제에서 정확히 어떻게 동작할지는 잘 모르겠네요 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
오호 앞선 2개의 요청이 끝나도 추가 요청이 들어오는 일이 없게끔 하신거군요 ! 👍