FTP NLST VB.Net [英] FTP NLST VB.Net

查看:95
本文介绍了FTP NLST VB.Net的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚开始维护一个现有的VB.Net FTP应用程序,

使目录在防火墙之间保持同步。文件的数量和

文件的内容已经变得非常大(最近由于

的新客户端)


目录中有4,000到40,000个文件。文件

名称是20多个字符。

申请表中有例外。在NLST命令期间发生异常,当有超过目录中4,000个文件的
时。例外情况是:


"远程主机强行关闭现有连接。


NLST命令是否有限制会造成这种情况?


提前感谢---当然发生这种情况非常接近另一个

产品发布: - )

Gabe--

I just started maintaining an existing VB.Net FTP application that
keeps directories in sync accross a firewall. The number of files and
the contents of the files has grown quite large (very recently due to a
new client)

There are anywhere from 4,000 to 40,000 files in a directory. The file
names are 20+ chars. An exception is being kicked out in the
application. The exception occurs during an NLST command when there are
more than the 4,000 files in a directory. The exception is:

"An existing connection was forcibly closed by the remote host. "

Is there a limit on the NLST command that would be causing this?

Thanks in advance --- Of course this happening very close to another
production release :- )

Gabe--

推荐答案



检查远程服务器上是否有超时属性,以及现有FTP应用程序中是否有
。如果情况发生任何变化,请查看




如果它似乎已修复,请设置并开始编写代码将使b / b
不会碰到标准超时设置。如果这不起作用我就是

对不起。


" ga ***** @ gmail.com" < GA ***** @ gmail.com>在消息中写道

news:11 ********************** @ g43g2000cwa.googlegr psps.com:

Check to see if you have a timeout property on the remote server and in
the existing FTP application. Up them up to some obscene number and see
if there is any change in the situation.

If it appears to be fixed, set down and begin to write code that will
not bump up against a standard timeout setting. If this didn''t work I am
sorry.

"ga*****@gmail.com" <ga*****@gmail.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com:
我刚开始维护一个现有的VB.Net FTP应用程序,它可以使目录在防火墙之间保持同步。文件的数量和文件的内容已经变得非常大(最近由于新客户端的原因)

目录中有4,000到40,000个文件。文件
名称是20多个字符。
应用程序中有一个例外。当NLST命令中存在超过目录中的4,000个文件时,会发生异常。例外情况是:

远程主机强行关闭现有连接。

NLST命令会对此造成限制吗?

提前致谢---当然这种情况非常接近另一个
制作发布: - )

Gabe -
I just started maintaining an existing VB.Net FTP application that
keeps directories in sync accross a firewall. The number of files and
the contents of the files has grown quite large (very recently due to a
new client)

There are anywhere from 4,000 to 40,000 files in a directory. The file
names are 20+ chars. An exception is being kicked out in the
application. The exception occurs during an NLST command when there are
more than the 4,000 files in a directory. The exception is:

"An existing connection was forcibly closed by the remote host. "

Is there a limit on the NLST command that would be causing this?

Thanks in advance --- Of course this happening very close to another
production release :- )

Gabe--






2005-07-25, ga ***** @ gmail.com < ga ***** @ gmail.com>写道:
On 2005-07-25, ga*****@gmail.com <ga*****@gmail.com> wrote:
我刚开始维护一个现有的VB.Net FTP应用程序,它可以使目录在防火墙之间保持同步。文件的数量和文件的内容已经变得非常大(最近由于新客户端的原因)

目录中有4,000到40,000个文件。文件
名称是20多个字符。
应用程序中有一个例外。当NLST命令中存在超过目录中的4,000个文件时,会发生异常。例外情况是:

远程主机强行关闭现有连接。

NLST命令会对此造成限制吗?

提前致谢---当然这种情况非常接近另一个
生产发布: - )
I just started maintaining an existing VB.Net FTP application that
keeps directories in sync accross a firewall. The number of files and
the contents of the files has grown quite large (very recently due to a
new client)

There are anywhere from 4,000 to 40,000 files in a directory. The file
names are 20+ chars. An exception is being kicked out in the
application. The exception occurs during an NLST command when there are
more than the 4,000 files in a directory. The exception is:

"An existing connection was forcibly closed by the remote host. "

Is there a limit on the NLST command that would be causing this?

Thanks in advance --- Of course this happening very close to another
production release :- )




我看过RFC,我没有看到为
$ b $定义的任何限制b NLST命令。


-

Tom Shelton [MVP]



I''ve looked at the RFC, and I don''t see any kind of limit defined for
the NLST command.

--
Tom Shelton [MVP]




有些服务器有一个设置(例如UNIX等)请求在服务器自动轰炸它的一定时间内花费



某些控件也将此设置作为控件的属性。 (Dart

Telnet,FTP控件浮现在脑海中)


它假设任何需要超过x秒的请求是

错误的请求并作为失败返回。


Tom Shelton < TS ****** @ YOUKNOWTHEDRILLcomcast.net>在消息中写道

新闻:Og ************* @ TK2MSFTNGP09.phx.gbl:

Some servers have a setting (such as UNIX, etc) that requests that take
over a certain amount of time the server will automatically bomb it out.

Some controls also have this setting as a property of the control. (Dart
Telnet, FTP controls come to mind)

It assumes any request made that takes longer than x seconds is an
erroneous request and returns as a failure.

"Tom Shelton" <ts******@YOUKNOWTHEDRILLcomcast.net> wrote in message
news:Og*************@TK2MSFTNGP09.phx.gbl:
2005-07 -25, ga*****@gmail.com < ga ***** @ gmail.com>写道:
On 2005-07-25, ga*****@gmail.com <ga*****@gmail.com> wrote:
我刚开始维护一个现有的VB.Net FTP应用程序,它可以使目录在防火墙之间保持同步。文件的数量和文件的内容已经变得非常大(最近由于新客户端的原因)

目录中有4,000到40,000个文件。文件
名称是20多个字符。
应用程序中有一个例外。当NLST命令中存在超过目录中的4,000个文件时,会发生异常。例外情况是:

远程主机强行关闭现有连接。

NLST命令会对此造成限制吗?

提前致谢---当然这种情况非常接近另一个
产品发布: - )
I just started maintaining an existing VB.Net FTP application that
keeps directories in sync accross a firewall. The number of files and
the contents of the files has grown quite large (very recently due to a
new client)

There are anywhere from 4,000 to 40,000 files in a directory. The file
names are 20+ chars. An exception is being kicked out in the
application. The exception occurs during an NLST command when there are
more than the 4,000 files in a directory. The exception is:

"An existing connection was forcibly closed by the remote host. "

Is there a limit on the NLST command that would be causing this?

Thanks in advance --- Of course this happening very close to another
production release :- )



我看过RFC,我没有看到任何为NLST命令定义的限制。

- 汤姆谢尔顿[MVP]



I''ve looked at the RFC, and I don''t see any kind of limit defined for
the NLST command.

--
Tom Shelton [MVP]






这篇关于FTP NLST VB.Net的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆