[jira] [Closed] (SVN-3694) When doing a diff via SWIG bindings, tempfiles are not cleaned up quickly enough

"Daniel Sahlberg (Jira)" <[email protected]> Tue, 11 Jan 2022 18:14:00 +0000 (UTC)
Newsgroups gmane.comp.version-control.subversion.issues
Message-ID <[email protected]>
     [ https://issues.apache.org/jira/browse/SVN-3694?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Sahlberg closed SVN-3694.
--------------------------------
    Resolution: Invalid

Incorrect usage of $ctx, see suggestion in comments.

> When doing a diff via SWIG bindings, tempfiles are not cleaned up quickly enough
> --------------------------------------------------------------------------------
>
>                 Key: SVN-3694
>                 URL: https://issues.apache.org/jira/browse/SVN-3694
>             Project: Subversion
>          Issue Type: Bug
>          Components: bindings_swig_perl
>    Affects Versions: 1.6.x
>            Reporter: Subversion Importer
>            Priority: Critical
>             Fix For: unscheduled
>
>         Attachments: 1_bad-svn.pl
>
>
> {noformat:nopanel=true}
> I am using the Perl interface to subversion. My client version is 1.6.9.
> If I call SVN::Client's diff() over and over on a remote repository in a tight 
> loop, it fails on the 255th request. Sometimes it fails with:
> RA layer request failed: OPTIONS of 
> 'http://svn.apache.org/repos/asf/apr/apr/trunk': Could not resolve hostname 
> `svn.apache.org': Host not found (http://svn.apache.org) at bad-svn.pl line 17
> And other times it fails with an error about "Can't find temporary directory".
> I can reproduce this against svn.apache.org and svn.mozilla.org both.
> Watching my /tmp directory, I see that the number of 'tempfile.#.tmp' files 
> keeps growing and growing. I am guessing that upon reaching 255, svn somehow 
> dies.
> I will attach a script that reproduces the problem reliably.
> {noformat}
> Original issue reported by *mkanat*



--
This message was sent by Atlassian Jira
(v8.20.1#820001)