Skip to content

[info] 선구자들의 피드백 #213

Description

@yechoi42
  • read fds, write fds에 등록하는 건 cgi 자식프로세스의 fd
  • 클라이언트는 최대한 끊지 말기. 끊었다 재 연결하면 휴지기간 때문에 fd가 엄청 늘어나버림.
  • 클라이언트 닫는 조건은 eof
  • 받은 메세지를 std::string으로 저장해도 되지만, substr 이나 + 연산 사용하면 부하 엄청남
  • 대신에 인덱스를 기억해뒀다가, 원하는 사이즈만큼 읽기/쓰기
  • read 한번했을 때 request message가 반개일 수도 있고 열개일 수도 있음. 자르고 남은 건 저장해두기.
    -> 저희는 버퍼를 사용하지 않습니다.
  • Robustness? 언젠간 필요하게 될 개념이다...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions