Page MenuHomePhabricator

MogileFS.php client halts for 1 second after PUT call
Closed, ResolvedPublic

Description

Author: nathan

Description:
For the current revision (7483) insert the following line after line 232:

curl_setopt($ch,CURLOPT_HTTPHEADER, array('Expect: '));

This will prevent a 1-second stall caused by the default libcurl behavior after the PUT completes. Setting an
empty 'Expect' header prevents libcurl from waiting for the '100 Continue' response from the mogstored
storage node.

Since you like Hitchhikers Guide to the Galaxy -- this reminds me of the Hideous Bugbladder Beast of Trall...
If we tell the server we're not expecting an "100 Continue" then libcurl won't expect it.


Version: unspecified
Severity: minor
URL: http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/MogileClient/MogileFS.php

Details

Reference
bz9399

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 9:39 PM
bzimport set Reference to bz9399.

Patch looks right. Fixed in r88131.