[jira] Created: (WAGONSSH-41) CLONED FOR CODE REVISION -SSH transport hangs on large transfers

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (WAGONSSH-41) CLONED FOR CODE REVISION -SSH transport hangs on large transfers

JIRA jira@codehaus.org
CLONED FOR CODE REVISION -SSH transport hangs on large transfers
----------------------------------------------------------------

         Key: WAGONSSH-41
         URL: http://jira.codehaus.org/browse/WAGONSSH-41
     Project: wagon-ssh
        Type: Bug

    Versions: 1.0-alpha-6    
    Reporter: John Casey
 Assigned to: John Casey
     Fix For: 1.0-alpha-7


(1.0-alpha-6 needs to be released and a7 added as a new version)

            executeCommand( "cd " + path + "; unzip -o " + zipFile.getName() + "; rm -f " + zipFile.getName() );

This code hangs when the zip is large.  The problem is that the process's outputstream is not read so eventually it fills its buffer and the process hangs.  My fix?  Add "-q" to unzip's arguments so that it does not spew tons of output.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (WAGONSSH-41) CLONED FOR CODE REVISION -SSH transport hangs on large transfers

JIRA jira@codehaus.org
     [ http://jira.codehaus.org/browse/WAGONSSH-41?page=all ]

John Casey updated WAGONSSH-41:
-------------------------------

    Fix Version:     (was: 1.0-alpha-7)

> CLONED FOR CODE REVISION -SSH transport hangs on large transfers
> ----------------------------------------------------------------
>
>          Key: WAGONSSH-41
>          URL: http://jira.codehaus.org/browse/WAGONSSH-41
>      Project: wagon-ssh
>         Type: Bug

>     Versions: 1.0-alpha-6
>     Reporter: John Casey
>     Assignee: John Casey

>
>
> (1.0-alpha-6 needs to be released and a7 added as a new version)
>             executeCommand( "cd " + path + "; unzip -o " + zipFile.getName() + "; rm -f " + zipFile.getName() );
> This code hangs when the zip is large.  The problem is that the process's outputstream is not read so eventually it fills its buffer and the process hangs.  My fix?  Add "-q" to unzip's arguments so that it does not spew tons of output.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (WAGONSSH-41) CLONED FOR CODE REVISION -SSH transport hangs on large transfers

JIRA jira@codehaus.org
In reply to this post by JIRA jira@codehaus.org
    [ http://jira.codehaus.org/browse/WAGONSSH-41?page=comments#action_59570 ]

John Casey commented on WAGONSSH-41:
------------------------------------

This has been cloned to remind me to revisit this piece of code, and try to incorporate a better fix, where the output stream is read (and dumped?)...this should be a cleaner long-term fix, I believe. However, due to the elevated risk involved with that revision, I'm waiting until after the 1.0-alpha-7 release to do it.

> CLONED FOR CODE REVISION -SSH transport hangs on large transfers
> ----------------------------------------------------------------
>
>          Key: WAGONSSH-41
>          URL: http://jira.codehaus.org/browse/WAGONSSH-41
>      Project: wagon-ssh
>         Type: Bug

>     Versions: 1.0-alpha-6
>     Reporter: John Casey
>     Assignee: John Casey

>
>
> (1.0-alpha-6 needs to be released and a7 added as a new version)
>             executeCommand( "cd " + path + "; unzip -o " + zipFile.getName() + "; rm -f " + zipFile.getName() );
> This code hangs when the zip is large.  The problem is that the process's outputstream is not read so eventually it fills its buffer and the process hangs.  My fix?  Add "-q" to unzip's arguments so that it does not spew tons of output.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]