> >¾çxxx ±Û¾´³¯: 2001³â 11¿ù 16ÀÏ 10:23:25 ±Ý(¿ÀÀü) > >Timeout: The number of seconds before receives and sends time out. > >Timeout 300 > > >¾ÆÆÄÄ¡ ¼³Á¤½Ã¿¡ À§ÀÇ ¹®Àåó·³ Timeout À̶õ ¿É¼ÇÀÌ Àִµ¥.. >ÀÌ°ÍÀÌ ÀǹÌÇÏ´Â °ÍÀº Ŭ¶óÀ̾ðÆ®°¡ ¼­¹öÀÇ ÀÓÀÇÀÇ ÆäÀÌÁö¸¦ ¿­¶§ ±× Æä >ÀÌÁö°¡ 5ºÐµ¿¾È¿¡ ´Ù ¿­¸®Áö ¾Ê´Â´Ù¸é Á¾·áÇ϶ó´Â ÀǹÌÀΰ¡¿ä ? >ȤÀº HTTP(ƯÁ¤À¥¹®¼­ÀÇ ¸µÅ©)¸¦ ÅëÇؼ­ ƯÁ¤ÆÄÀÏÀ» ´Ù¿î¹ÞÀ» ¶§ ´Ù¿î·Î >µå ½Ã°£ÀÌ °æ°úµÇ¾ú´Ù´Â ¸Þ¼¼Áö´Â Timeout À̶õ ¿É¼Ç°ú °ü°è°¡ ÀÖ´Â °Ç >°¡¿ä.. ? >¸¸¾à Timeout°ú °ü°è°¡ ¾ø´Ù¸é ¾î¶°ÇÑ °Í°ú °ü°è°¡ ÀÖ´Â °Ç°¡¿ä.. ? >Áú¹®³»¿ëÀÌ Á»... >-----------Happy Good Linguxing ----------------------- ## 2001.11.16 ## "»êÀÌ" Á¶±Ý ºñÁß(?)ÀÖ´Â ³»¿ëÀÎ °ü°è·Î FAQ·Î ÀÛ¼ºÇØ º¾´Ï´Ù. [¾ÆÆÄÄ¡] TimeoutÀÇ ½Ã°£À̶õ? ¾ÆÆÄÄ¡ Á¦°ø¹®¼­(¼³Á¤ÆÄÀÏ Æ÷ÇÔ)¿¡ ÀÇÇϸé, Timeout 300 -The number of seconds before receives and sends time out. -The TimeOut directive currently defines the amount of time Apache will wait for three things: 1.The total amount of time it takes to receive a GET request. 2.The amount of time between receipt of TCP packets on a POST or PUT request. 3.The amount of time between ACKs on transmissions of TCP packets in responses. Àε¥ ¹ø¿ª(?)ÇÏÀÚ¸é, - ¹Þ°í/º¸³»´Â time outÀÇ ÃÊ´ÜÀ§ ½Ã°£ - ¾ÆÆÄÄ¡°¡ ´ÙÀ½ÀÇ 3°¡Áö »çÇ×À» ±â´Ù¸®´Â ½Ã°£À¸·Î Á¤ÀÇµÊ 1. (¾ÆÆÄÄ¡°¡ Ŭ¶óÀ̾ðÆ®·Î ºÎÅÍ) GET ¿äû(GET ¹æ½ÄÀÇ URL¿äû)À» ¹Þ´Âµ¥ °É¸®´Â ½Ã°£. - (¿äû) 2. (¾ÆÆÄÄ¡°¡ Ŭ¶óÀ̾ðÆ®·Î ºÎÅÍ) POST³ª PUT ¹æ½ÄÀÇ ¿äû¿¡ ´ëÇÑ TCP ÆÐŶÀ» ¹Þ´Âµ¥ °É¸®´Â ½Ã°£. - (¿äû) 3. (¾ÆÆÄÄ¡°¡ Ŭ¶óÀ̾ðÆ®¿¡°Ô) TCP ÆÐŶÀ» Àü¼ÛÇÒ¶§ ACKs ¼¼±×¸ÕÆ®¸¦ º¸³»´Âµ¥ °É¸®´Â ½Ã°£ - (ÀÀ´ä) À§ÀÇ ³»¿ëÀ» ½±°Ô ÀÌÇØÇÒ°Í °°Áö¸¸, TCP/IP ³×Æ®¿öÅ©¿¡¼­ "TCP 3 way handshaking"¶ó´Â TCPÀÇ Á¦¾î±â´ÉÀ» ÀÌÇØÇؾ߸¸ TimeoutÀÇ °³³äÀ» ¾Ë ¼ö ÀÖ½À´Ï´Ù. Áú¹®ÀÇ ³»¿ëÀº 3¹øÀÇ ÀÀ´ä¿¡ °üÇÑ ³»¿ëÀε¥, ÆÄÀÏÀ» ´Ù¿î·ÎµåÇÒ¶§´Â 3¹øÀÇ ÀÀ´ä °úÁ¤ÀÌ ¸ðµÎ ³¡³ª°í ½ÇÁ¦·Î Data ÆÐŶÀ» Àü¼ÛÇÏ´Â ´Ü°èÀ̹ǷΠTimeout°ú °ü°è°¡ ¾ø½À´Ï´Ù. ±×·¸°Ô ¶§¹®¿¡ ¾ÆÁÖ µ¢Ä¡ Å« ÆÄÀÏ(100M ÀÌ»ó)À» HTTP ÇÁ·ÎÅäÄÝÀ» ÀÌ¿ëÇؼ­ ´Ù¿î·ÎµåÇÒ¶§ 5ºÐ ÀÌ»óÀÌ °É·Áµµ Time outÀÌ µÇÁö ¾Ê´Â ÀÌÀ¯°¡ ¿©±â¿¡ ÀÖ½À´Ï´Ù. Áú¹®¿¡ ´ëÇÑ °á·ÐÀº Timeout Áö½ÃÀÚ´Â ½ÇÁ¦·Î ÆÄÀÏÀ» ´Ù¿î·ÎµåÇÏ´Â Data ÆÐŶ Àü¼Û°ú °ü°è°¡ ¾øÀ¸¸ç, ¾Õ¿¡¼­ ¼³¸íÇÑ 1,2¹øÀÇ ¿äû¿¡ °É¸®´Â ½Ã°£°ú 3¹øÀÇ ÀÀ´ä¿¡ °É¸®´Â ½Ã°£°ú °ü°è°¡ ÀÖ½À´Ï´Ù. 1, 2¹øÀÇ ¿äû¿¡ °üÇÑ ³»¿ëÀº µû·Î ¼³¸íÇÏÁö ¾Ê¾Æµµ ÀÌÇØÇÒ ¼ö ÀÖ´Â ºÎºÐÀ̹ǷΠ»ý·«ÇÏ°í, Á»´õ °³³äÀûÀ¸·Î È®½ÇÈ÷(?) ¾Ë±â À§Çؼ­ "TCP 3 way handshaking"À̶ó´Â ³à¼®¿¡ ´ëÇؼ­ Á¶±Ý ¾Ë¾Æº¸ÁÒ.. ¿¹¸¦µé¾î, TCP/IP ³×Æ®¿öÅ©¿¡¼­´Â AÈ£½ºÆ®¿¡¼­ BÈ£½ºÆ®·Î Á¢¼ÓÇÏ¿© Data ÆÐŶÀ» Àü¼ÛÇÒ¶§ ´Ü ÇѹøÀÇ Á¢¼ÓÀ¸·Î Data ÆÐŶÀ» º¸³»´Â °ÍÀÌ ¾Æ´Ï¶ó ¸ðµÎ 3¹ø¿¡ °ÉÃļ­ ÀÌ·ç¾îÁý´Ï´Ù. 1´Ü°è : A ----- Á¢¼Ó½Ãµµ(SYN, SYNchronize sequene number º¸³¿) -----> B 2´Ü°è : A <---- È®Àδܰè(SYN, ACK(ACKnowledgment º¸³¿) ----------- B 3´Ü°è : A ----- Àü¼Û½ÃÀÛ(ACK, Data Àü¼Û½ÃÀÛ) --------------------> B ÀÌ¿Í °°ÀÌ TCP ³×Æ®¿öÅ©´Â ÆÐŶÀ» ¼ø¼­´ë·Î ¸Â°Ô Àü´ÞÇϱâ À§Çؼ­ ÀÌ·± Á¦¾î±â´ÉÀ» ÇϰԵ˴ϴÙ. 3¹ø¿¡ °ÉÃļ­ ¸¶Ä¡ ¾Ç¼öÇϵíÀÌ ÀÌ·ç¾îÁø´ÙÇؼ­ "3 way handshaking"À̶ó´Â ¸»ÀÌ ³ª¿Â°Í °°±º¿ä. Çò°¥¸®Áö ¾Ê¾Æ¾ßÇÒ Á¡Àº ¾Õ¿¡¼­ Data Àü¼ÛÀ̶ó°íÇؼ­ ¿äû¿¡ ´ëÇÑ ÀÀ´ä¿¡ ¸¸ ÇØ´çµÇ´Â°ÍÀÌ ¿äûµµ ÀÌ¿Í °°ÀÌ 3´Ü°è¸¦ °ÉÃļ­ ÀÌ·ç¾î Áý´Ï´Ù. Á»´õ Á¤È®ÇÏ°í ¸¹Àº Á¤º¸¸¦ ¿øÇÑ´Ù¸é TCP/IP ³×Æ®¿öÅ©¿¡ ´ëÇÑ Àü¹®¼­ÀûÀ» Àо½Ã±æ ¹Ù¶ø´Ï´Ù(ÇÊÀÚ´Â ÀÌÁ¤µµ ¼öÁØÀ̶ó¼­...^.9). Áú¹®ÀÇ ³»¿ë°ú ¿¬°áÇؼ­, 1, 2¹øÀÇ ¿äû, Áï "xxx ¹Þ´Âµ¥ °É¸®´Â ½Ã°£"Àº À§ÀÇ 3´Ü°è ¸ðµÎ¿¡ ÇØ´çµÇ´Â ½Ã°£ÀÌ°í, 3¹øÀÇ ÀÀ´ä, Áï "xxx ACKs ¼¼±×¸ÕÆ®¸¦ º¸³»´Âµ¥ °É¸®´Â ½Ã°£"Àº 2´Ü°è¿¡ ÇØ´çµÇ´Â ½Ã°£À» ÀǹÌÇÕ´Ï´Ù. µû¶ó¼­ ÀÌ¹Ì Áú¹®¿¡ ´ëÇÑ ´äÀÌ ³ª¿Í ÀÖµíÀÌ "ÆÄÀÏÀ» ´Ù¿î·ÎµåÇÏ´Â °æ¿ì"´Â ÀÌ¹Ì 2´Ü°è°¡ ¸ðµÎ ³¡³ª°í 3´Ü°è¸¦ ÀǹÌÇϹǷΠ¾ÆÆÄÄ¡ÀÇ Timeout °ú °ü·ÃÀÌ ¾ø½À´Ï´Ù. Timeout 300 ÀÇ Àǹ̴ - URL GET ¿äûÀ̳ª POST, PUT ¿äûÀ» ÇÒ¶§ ³×Æ®¿öÅ© ȯ°æÀÌ Áö³ªÄ¡°Ô ³Ê¹« ´À¸° ȯ°æ(¾ÆÁÖ ¸Ö¸® ¶³¾îÁ® ÀÖ´Â ¾ÆÁÖ ´À¸° ȯ°æ)¿¡¼­ Á¢¼ÓÀ» ÇÒ¶§ °É¸®´Â ½Ã°£ÀÌ 300ÃÊ°¡ ³Ñ¾î°¡¸é TimeoutÀÌ µË´Ï´Ù. - ¶ÇÇÑ ´Ù¿î·Îµå°¡ ¾Æ´Ñ ACKs ¼¼±×¸ÕÆ® ¸Þ½ÃÁö¸¦ º¸³¾¶§µµ ¸¶Âù°¡Áö·Î ³Ê¹« ´À¸° ȯ°æÀ̳ª ³×Æ®¿öÅ© Àå¾Ö·Î ÀÎÇؼ­ ½Ã°£ÀÌ 300Ãʸ¦ ÃÊ°úÇÒ °æ¿ì¿¡ TimeoutÀÌ µË´Ï´Ù. °£È¤ ¸Ö¸® ¶³¾îÁø ¿Ü±¹ÀÇ ½ÎÀÌÆ®¸¦ Á¢¼ÓÇÏ´Ùº¸¸é °©ÀÛ½º·± ³×Æ®¿öÅ© Àå¾Ö·Î Timeout À̶ó´Â Error ¸Þ½ÃÁö¸¦ º» °æÇèÀÌ Àִµ¥ ÀÌ¿Í °°Àº ÀÌÀ¯·Î TimeoutÀÌ µÇ±âµµ ÇÕ´Ï´Ù. ÀÌ¿Í °ü·ÃµÈ HTTP 1.1 status codes(RFC 2068) "408" ; Request Time-out "413" ; Request Entity Too Large "414" ; Request-URI Too Large "502" ; Bad Gateway "504" ; Gateway Time-out 408 Request Timeout The client did not produce a request within the time that the server was prepared to wait. The client MAY repeat the request without modifications at any later time. 413 Request Entity Too Large The server is refusing to process a request because the request entity is larger than the server is willing or able to process. The server may close the connection to prevent the client from continuing the request. If the condition is temporary, the server SHOULD include a Retry- After header field to indicate that it is temporary and after what time the client may try again. 414 Request-URI Too Long The server is refusing to service the request because the Request-URI is longer than the server is willing to interpret. This rare condition is only likely to occur when a client has improperly converted a POST request to a GET request with long query information, when the client has descended into a URL "black hole" of redirection (e.g., a redirected URL prefix that points to a suffix of itself), or when the server is under attack by a client attempting to exploit security holes present in some servers using fixed-length buffers for reading or manipulating the Request-URI. 502 Bad Gateway The server, while acting as a gateway or proxy, received an invalid response from the upstream server it accessed in attempting to fulfill the request. 504 Gateway Timeout The server, while acting as a gateway or proxy, did not receive a timely response from the upstream server it accessed in attempting to complete the request. --END------------------