# HTTP push

2 messages from 2005-11-07 to 2005-11-07. Participants: Johannes Schindelin, Nick Hengeveld.
Thread: https://gitlist.dev/t/2378

## Johannes Schindelin, 2005-11-07 02:35

Subject: HTTP push
Message-ID: <Pine.LNX.4.63.0511070328230.25684@wbgn013.biozentrum.uni-wuerzburg.de>
URL: https://gitlist.dev/e/Pine.LNX.4.63.0511070328230.25684%40wbgn013.biozentrum.uni-wuerzburg.de

```
Hi,

I played a little with git-http-push. There are some strange things going 
on: whenever I commented out the calls to curl_multi_remove_handle() and 
curl_multi_cleanup(), all was well. Whenever I did not, there was either a 
segfault, or an endless loop.

Also, I had to update my curl, because http-push *absolutely* needs 
CURLOPT_HTTPGET. I tried to fake it with any combination of 
CURLOPT_{NOBODY,POST,PUT,UPLOAD}, but failed. (Yes, that means that you 
won't have to deal any longer with my patches to support older curl 
versions...)

Note: all my tests are from an iBook (client) to an Intel Linux (server).

I will run some tests on another client with valgrind (that will wait 
until tomorrow; it's 3.30am local time, so I head to bed).

Ciao,
Dscho

```

## Nick Hengeveld, 2005-11-07 04:31

Subject: Re: HTTP push
Message-ID: <20051107043149.GH3001@reactrix.com>
URL: https://gitlist.dev/e/20051107043149.GH3001%40reactrix.com
In-Reply-To: <Pine.LNX.4.63.0511070328230.25684@wbgn013.biozentrum.uni-wuerzburg.de>

```
On Mon, Nov 07, 2005 at 03:35:33AM +0100, Johannes Schindelin wrote:

> I played a little with git-http-push. There are some strange things going 
> on: whenever I commented out the calls to curl_multi_remove_handle() and 
> curl_multi_cleanup(), all was well. Whenever I did not, there was either a 
> segfault, or an endless loop.

http-push is a bit more aggressive than http-fetch about freeing up memory,
perhaps too aggressive...  I ran into similar issues when memory was
freed more than once.

> I will run some tests on another client with valgrind (that will wait 
> until tomorrow; it's 3.30am local time, so I head to bed).

Thanks, I'll work on memory cleanup some more.

-- 
For a successful technology, reality must take precedence over public
relations, for nature cannot be fooled.

```
