You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Jean-Marc Borer <jm...@gmail.com> on 2013/02/05 17:50:10 UTC
[vfs] New feature request: configurable socket timeout for HTTP and
WebDAV in VFS
Hello list members,
We need to be able to specify socket timeouts in VFS for HTTP and
WebDAV in our project so that request will no hang for ever in certain
conditions.
I have modified the sources of HttpFileSystemConfigBuilder and
HttpClientFactory to be able to configure this in HttpClient.
Do you want me to propose a patch for that?
Cheers,
Jean-marc
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org
Re: [vfs] New feature request: configurable socket timeout for HTTP and WebDAV in VFS
Posted by Ralph Goers <ra...@dslextreme.com>.
Yup. I have no idea why I said that. While you can certainly pass the options HttpClientFactory wouldn't do anything with them.
Ralph
On Feb 6, 2013, at 2:09 AM, Jean-Marc Borer wrote:
> I found this entry in JIRA:
>
> https://issues.apache.org/jira/browse/VFS-249
>
> Actually it is not true that it is fixed. Looking at the code Ralph
> Goers's explanation are not correct. It should be reopened.
>
> I will create a new entry.
>
>
> On Wed, Feb 6, 2013 at 9:51 AM, Jean-Marc Borer <jm...@gmail.com> wrote:
>> OK. You seem to like the feature.
>>
>> Can I provide the patch for integration then? To whom should I send it?
>>
>> On Tue, Feb 5, 2013 at 10:06 PM, Mark Fortner <ph...@gmail.com> wrote:
>>> Perhaps not for local file systems, but I would imagine that any kind of
>>> distributed file system would have need of a socket timeout.
>>>
>>> Cheers,
>>>
>>> Mark
>>>
>>>
>>>
>>> On Tue, Feb 5, 2013 at 1:59 PM, Gary Gregory <ga...@gmail.com> wrote:
>>>
>>>> On Tue, Feb 5, 2013 at 4:54 PM, Mark Fortner <ph...@gmail.com> wrote:
>>>>
>>>>> Just out of curiousity, is there a reason that socket timeouts shouldn't
>>>>> also apply to all file systems in general?
>>>>>
>>>>
>>>> How does a socket timeout make sense for a local file system, ZIP, and so
>>>> on?
>>>>
>>>> Gary
>>>>
>>>>
>>>>>
>>>>> Cheers,
>>>>>
>>>>> Mark
>>>>>
>>>>>
>>>>>
>>>>> On Tue, Feb 5, 2013 at 8:58 AM, Gary Gregory <ga...@gmail.com>
>>>>> wrote:
>>>>>
>>>>>> Sure, make sure you base you patch on the latest from trunk.
>>>>>>
>>>>>> Gary
>>>>>>
>>>>>>
>>>>>> On Tue, Feb 5, 2013 at 11:50 AM, Jean-Marc Borer <jm...@gmail.com>
>>>>>> wrote:
>>>>>>
>>>>>>> Hello list members,
>>>>>>>
>>>>>>> We need to be able to specify socket timeouts in VFS for HTTP and
>>>>>>> WebDAV in our project so that request will no hang for ever in
>>>> certain
>>>>>>> conditions.
>>>>>>>
>>>>>>> I have modified the sources of HttpFileSystemConfigBuilder and
>>>>>>> HttpClientFactory to be able to configure this in HttpClient.
>>>>>>>
>>>>>>> Do you want me to propose a patch for that?
>>>>>>>
>>>>>>> Cheers,
>>>>>>>
>>>>>>> Jean-marc
>>>>>>>
>>>>>>> ---------------------------------------------------------------------
>>>>>>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
>>>>>>> For additional commands, e-mail: dev-help@commons.apache.org
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> E-Mail: garydgregory@gmail.com | ggregory@apache.org
>>>>>> JUnit in Action, 2nd Ed: <http://goog_1249600977>http://bit.ly/ECvg0
>>>>>> Spring Batch in Action: <http://s.apache.org/HOq>http://bit.ly/bqpbCK
>>>>>> Blog: http://garygregory.wordpress.com
>>>>>> Home: http://garygregory.com/
>>>>>> Tweet! http://twitter.com/GaryGregory
>>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> E-Mail: garydgregory@gmail.com | ggregory@apache.org
>>>> JUnit in Action, 2nd Ed: <http://goog_1249600977>http://bit.ly/ECvg0
>>>> Spring Batch in Action: <http://s.apache.org/HOq>http://bit.ly/bqpbCK
>>>> Blog: http://garygregory.wordpress.com
>>>> Home: http://garygregory.com/
>>>> Tweet! http://twitter.com/GaryGregory
>>>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org
Re: [vfs] New feature request: configurable socket timeout for HTTP
and WebDAV in VFS
Posted by Jean-Marc Borer <jm...@gmail.com>.
I found this entry in JIRA:
https://issues.apache.org/jira/browse/VFS-249
Actually it is not true that it is fixed. Looking at the code Ralph
Goers's explanation are not correct. It should be reopened.
I will create a new entry.
On Wed, Feb 6, 2013 at 9:51 AM, Jean-Marc Borer <jm...@gmail.com> wrote:
> OK. You seem to like the feature.
>
> Can I provide the patch for integration then? To whom should I send it?
>
> On Tue, Feb 5, 2013 at 10:06 PM, Mark Fortner <ph...@gmail.com> wrote:
>> Perhaps not for local file systems, but I would imagine that any kind of
>> distributed file system would have need of a socket timeout.
>>
>> Cheers,
>>
>> Mark
>>
>>
>>
>> On Tue, Feb 5, 2013 at 1:59 PM, Gary Gregory <ga...@gmail.com> wrote:
>>
>>> On Tue, Feb 5, 2013 at 4:54 PM, Mark Fortner <ph...@gmail.com> wrote:
>>>
>>> > Just out of curiousity, is there a reason that socket timeouts shouldn't
>>> > also apply to all file systems in general?
>>> >
>>>
>>> How does a socket timeout make sense for a local file system, ZIP, and so
>>> on?
>>>
>>> Gary
>>>
>>>
>>> >
>>> > Cheers,
>>> >
>>> > Mark
>>> >
>>> >
>>> >
>>> > On Tue, Feb 5, 2013 at 8:58 AM, Gary Gregory <ga...@gmail.com>
>>> > wrote:
>>> >
>>> > > Sure, make sure you base you patch on the latest from trunk.
>>> > >
>>> > > Gary
>>> > >
>>> > >
>>> > > On Tue, Feb 5, 2013 at 11:50 AM, Jean-Marc Borer <jm...@gmail.com>
>>> > > wrote:
>>> > >
>>> > > > Hello list members,
>>> > > >
>>> > > > We need to be able to specify socket timeouts in VFS for HTTP and
>>> > > > WebDAV in our project so that request will no hang for ever in
>>> certain
>>> > > > conditions.
>>> > > >
>>> > > > I have modified the sources of HttpFileSystemConfigBuilder and
>>> > > > HttpClientFactory to be able to configure this in HttpClient.
>>> > > >
>>> > > > Do you want me to propose a patch for that?
>>> > > >
>>> > > > Cheers,
>>> > > >
>>> > > > Jean-marc
>>> > > >
>>> > > > ---------------------------------------------------------------------
>>> > > > To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
>>> > > > For additional commands, e-mail: dev-help@commons.apache.org
>>> > > >
>>> > > >
>>> > >
>>> > >
>>> > > --
>>> > > E-Mail: garydgregory@gmail.com | ggregory@apache.org
>>> > > JUnit in Action, 2nd Ed: <http://goog_1249600977>http://bit.ly/ECvg0
>>> > > Spring Batch in Action: <http://s.apache.org/HOq>http://bit.ly/bqpbCK
>>> > > Blog: http://garygregory.wordpress.com
>>> > > Home: http://garygregory.com/
>>> > > Tweet! http://twitter.com/GaryGregory
>>> > >
>>> >
>>>
>>>
>>>
>>> --
>>> E-Mail: garydgregory@gmail.com | ggregory@apache.org
>>> JUnit in Action, 2nd Ed: <http://goog_1249600977>http://bit.ly/ECvg0
>>> Spring Batch in Action: <http://s.apache.org/HOq>http://bit.ly/bqpbCK
>>> Blog: http://garygregory.wordpress.com
>>> Home: http://garygregory.com/
>>> Tweet! http://twitter.com/GaryGregory
>>>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org
Re: [vfs] New feature request: configurable socket timeout for HTTP
and WebDAV in VFS
Posted by Jean-Marc Borer <jm...@gmail.com>.
OK. You seem to like the feature.
Can I provide the patch for integration then? To whom should I send it?
On Tue, Feb 5, 2013 at 10:06 PM, Mark Fortner <ph...@gmail.com> wrote:
> Perhaps not for local file systems, but I would imagine that any kind of
> distributed file system would have need of a socket timeout.
>
> Cheers,
>
> Mark
>
>
>
> On Tue, Feb 5, 2013 at 1:59 PM, Gary Gregory <ga...@gmail.com> wrote:
>
>> On Tue, Feb 5, 2013 at 4:54 PM, Mark Fortner <ph...@gmail.com> wrote:
>>
>> > Just out of curiousity, is there a reason that socket timeouts shouldn't
>> > also apply to all file systems in general?
>> >
>>
>> How does a socket timeout make sense for a local file system, ZIP, and so
>> on?
>>
>> Gary
>>
>>
>> >
>> > Cheers,
>> >
>> > Mark
>> >
>> >
>> >
>> > On Tue, Feb 5, 2013 at 8:58 AM, Gary Gregory <ga...@gmail.com>
>> > wrote:
>> >
>> > > Sure, make sure you base you patch on the latest from trunk.
>> > >
>> > > Gary
>> > >
>> > >
>> > > On Tue, Feb 5, 2013 at 11:50 AM, Jean-Marc Borer <jm...@gmail.com>
>> > > wrote:
>> > >
>> > > > Hello list members,
>> > > >
>> > > > We need to be able to specify socket timeouts in VFS for HTTP and
>> > > > WebDAV in our project so that request will no hang for ever in
>> certain
>> > > > conditions.
>> > > >
>> > > > I have modified the sources of HttpFileSystemConfigBuilder and
>> > > > HttpClientFactory to be able to configure this in HttpClient.
>> > > >
>> > > > Do you want me to propose a patch for that?
>> > > >
>> > > > Cheers,
>> > > >
>> > > > Jean-marc
>> > > >
>> > > > ---------------------------------------------------------------------
>> > > > To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
>> > > > For additional commands, e-mail: dev-help@commons.apache.org
>> > > >
>> > > >
>> > >
>> > >
>> > > --
>> > > E-Mail: garydgregory@gmail.com | ggregory@apache.org
>> > > JUnit in Action, 2nd Ed: <http://goog_1249600977>http://bit.ly/ECvg0
>> > > Spring Batch in Action: <http://s.apache.org/HOq>http://bit.ly/bqpbCK
>> > > Blog: http://garygregory.wordpress.com
>> > > Home: http://garygregory.com/
>> > > Tweet! http://twitter.com/GaryGregory
>> > >
>> >
>>
>>
>>
>> --
>> E-Mail: garydgregory@gmail.com | ggregory@apache.org
>> JUnit in Action, 2nd Ed: <http://goog_1249600977>http://bit.ly/ECvg0
>> Spring Batch in Action: <http://s.apache.org/HOq>http://bit.ly/bqpbCK
>> Blog: http://garygregory.wordpress.com
>> Home: http://garygregory.com/
>> Tweet! http://twitter.com/GaryGregory
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org
Re: [vfs] New feature request: configurable socket timeout for HTTP
and WebDAV in VFS
Posted by Mark Fortner <ph...@gmail.com>.
Perhaps not for local file systems, but I would imagine that any kind of
distributed file system would have need of a socket timeout.
Cheers,
Mark
On Tue, Feb 5, 2013 at 1:59 PM, Gary Gregory <ga...@gmail.com> wrote:
> On Tue, Feb 5, 2013 at 4:54 PM, Mark Fortner <ph...@gmail.com> wrote:
>
> > Just out of curiousity, is there a reason that socket timeouts shouldn't
> > also apply to all file systems in general?
> >
>
> How does a socket timeout make sense for a local file system, ZIP, and so
> on?
>
> Gary
>
>
> >
> > Cheers,
> >
> > Mark
> >
> >
> >
> > On Tue, Feb 5, 2013 at 8:58 AM, Gary Gregory <ga...@gmail.com>
> > wrote:
> >
> > > Sure, make sure you base you patch on the latest from trunk.
> > >
> > > Gary
> > >
> > >
> > > On Tue, Feb 5, 2013 at 11:50 AM, Jean-Marc Borer <jm...@gmail.com>
> > > wrote:
> > >
> > > > Hello list members,
> > > >
> > > > We need to be able to specify socket timeouts in VFS for HTTP and
> > > > WebDAV in our project so that request will no hang for ever in
> certain
> > > > conditions.
> > > >
> > > > I have modified the sources of HttpFileSystemConfigBuilder and
> > > > HttpClientFactory to be able to configure this in HttpClient.
> > > >
> > > > Do you want me to propose a patch for that?
> > > >
> > > > Cheers,
> > > >
> > > > Jean-marc
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> > > > For additional commands, e-mail: dev-help@commons.apache.org
> > > >
> > > >
> > >
> > >
> > > --
> > > E-Mail: garydgregory@gmail.com | ggregory@apache.org
> > > JUnit in Action, 2nd Ed: <http://goog_1249600977>http://bit.ly/ECvg0
> > > Spring Batch in Action: <http://s.apache.org/HOq>http://bit.ly/bqpbCK
> > > Blog: http://garygregory.wordpress.com
> > > Home: http://garygregory.com/
> > > Tweet! http://twitter.com/GaryGregory
> > >
> >
>
>
>
> --
> E-Mail: garydgregory@gmail.com | ggregory@apache.org
> JUnit in Action, 2nd Ed: <http://goog_1249600977>http://bit.ly/ECvg0
> Spring Batch in Action: <http://s.apache.org/HOq>http://bit.ly/bqpbCK
> Blog: http://garygregory.wordpress.com
> Home: http://garygregory.com/
> Tweet! http://twitter.com/GaryGregory
>
Re: [vfs] New feature request: configurable socket timeout for HTTP
and WebDAV in VFS
Posted by Gary Gregory <ga...@gmail.com>.
On Tue, Feb 5, 2013 at 4:54 PM, Mark Fortner <ph...@gmail.com> wrote:
> Just out of curiousity, is there a reason that socket timeouts shouldn't
> also apply to all file systems in general?
>
How does a socket timeout make sense for a local file system, ZIP, and so
on?
Gary
>
> Cheers,
>
> Mark
>
>
>
> On Tue, Feb 5, 2013 at 8:58 AM, Gary Gregory <ga...@gmail.com>
> wrote:
>
> > Sure, make sure you base you patch on the latest from trunk.
> >
> > Gary
> >
> >
> > On Tue, Feb 5, 2013 at 11:50 AM, Jean-Marc Borer <jm...@gmail.com>
> > wrote:
> >
> > > Hello list members,
> > >
> > > We need to be able to specify socket timeouts in VFS for HTTP and
> > > WebDAV in our project so that request will no hang for ever in certain
> > > conditions.
> > >
> > > I have modified the sources of HttpFileSystemConfigBuilder and
> > > HttpClientFactory to be able to configure this in HttpClient.
> > >
> > > Do you want me to propose a patch for that?
> > >
> > > Cheers,
> > >
> > > Jean-marc
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> > > For additional commands, e-mail: dev-help@commons.apache.org
> > >
> > >
> >
> >
> > --
> > E-Mail: garydgregory@gmail.com | ggregory@apache.org
> > JUnit in Action, 2nd Ed: <http://goog_1249600977>http://bit.ly/ECvg0
> > Spring Batch in Action: <http://s.apache.org/HOq>http://bit.ly/bqpbCK
> > Blog: http://garygregory.wordpress.com
> > Home: http://garygregory.com/
> > Tweet! http://twitter.com/GaryGregory
> >
>
--
E-Mail: garydgregory@gmail.com | ggregory@apache.org
JUnit in Action, 2nd Ed: <http://goog_1249600977>http://bit.ly/ECvg0
Spring Batch in Action: <http://s.apache.org/HOq>http://bit.ly/bqpbCK
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory
Re: [vfs] New feature request: configurable socket timeout for HTTP
and WebDAV in VFS
Posted by Mark Fortner <ph...@gmail.com>.
Just out of curiousity, is there a reason that socket timeouts shouldn't
also apply to all file systems in general?
Cheers,
Mark
On Tue, Feb 5, 2013 at 8:58 AM, Gary Gregory <ga...@gmail.com> wrote:
> Sure, make sure you base you patch on the latest from trunk.
>
> Gary
>
>
> On Tue, Feb 5, 2013 at 11:50 AM, Jean-Marc Borer <jm...@gmail.com>
> wrote:
>
> > Hello list members,
> >
> > We need to be able to specify socket timeouts in VFS for HTTP and
> > WebDAV in our project so that request will no hang for ever in certain
> > conditions.
> >
> > I have modified the sources of HttpFileSystemConfigBuilder and
> > HttpClientFactory to be able to configure this in HttpClient.
> >
> > Do you want me to propose a patch for that?
> >
> > Cheers,
> >
> > Jean-marc
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> > For additional commands, e-mail: dev-help@commons.apache.org
> >
> >
>
>
> --
> E-Mail: garydgregory@gmail.com | ggregory@apache.org
> JUnit in Action, 2nd Ed: <http://goog_1249600977>http://bit.ly/ECvg0
> Spring Batch in Action: <http://s.apache.org/HOq>http://bit.ly/bqpbCK
> Blog: http://garygregory.wordpress.com
> Home: http://garygregory.com/
> Tweet! http://twitter.com/GaryGregory
>
Re: [vfs] New feature request: configurable socket timeout for HTTP
and WebDAV in VFS
Posted by Gary Gregory <ga...@gmail.com>.
Sure, make sure you base you patch on the latest from trunk.
Gary
On Tue, Feb 5, 2013 at 11:50 AM, Jean-Marc Borer <jm...@gmail.com> wrote:
> Hello list members,
>
> We need to be able to specify socket timeouts in VFS for HTTP and
> WebDAV in our project so that request will no hang for ever in certain
> conditions.
>
> I have modified the sources of HttpFileSystemConfigBuilder and
> HttpClientFactory to be able to configure this in HttpClient.
>
> Do you want me to propose a patch for that?
>
> Cheers,
>
> Jean-marc
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>
>
--
E-Mail: garydgregory@gmail.com | ggregory@apache.org
JUnit in Action, 2nd Ed: <http://goog_1249600977>http://bit.ly/ECvg0
Spring Batch in Action: <http://s.apache.org/HOq>http://bit.ly/bqpbCK
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory