modifyApacheTime out setting for,Resolve the issue of long connection request timeout

Release time:2022-01-18 12:25:44 Number of views:276

at a certain date,In group backend development found me,Ask us about itWEBWhat is the server timeout setting。The issue he gave feedback on is,There is oneVLANSwitch taskscgiThe interface often returns504Gateway timeout error,Let me analyze and solve it。modifyApacheTime out setting for,Resolve the issue of long connection request timeout


I asked,When I learned that this request encountered a large number of network device objects,It takes less than half an hour to complete,That means long connections are needed。


Old rules,Obtain the interface address from the development team,Obtain access layer serverIP,It's a machineHaproxyagent,I took a lookHaproxyTime out setting for:


# Set the maximum waiting time for successfully connecting to a server,The default unit is milliseconds,New versionhaproxyapplytimeout connectreplace,This parameter is backward compatiblecontimeout 3600# Set the maximum waiting time for a successful connection when sending data to the client,The default unit is milliseconds,New versionhaproxyapplytimeout clientreplace。This parameter is backward compatibleclitimeout 3600# Set the maximum waiting time for server-side response to send customer satisfaction data,The default unit is milliseconds,New versionhaproxyapplytimeout serverreplace。This parameter is backward compatiblesrvtimeout 3600

Various1Hour timeout,So excludeHaproxyThe impact of,Keep reading。


Haproxy The agent is2platformApache,That is to say, it has been deployedcgiInterface server。I checked it at the first time httpd.conf and httpd-vhost.conf Configuration in,Surprisingly, I couldn't find the timeout setting。


hence,I searched for relevant tutorials,Discovered that it was originally hidden in httpd-default.conf among:


comment 0

Recommended posts

more »

Related products

Warm prompt ×
The product has been successfully added to the shopping cart!
Shopping Cart Total 0 Items
GoCart