标签: timeout

无法识别的选项“超时”

当我使用以下命令时,会弹出无法识别的选项“stimeout”:

ffmpeg -re -rtsp_transport tcp -y -stimeout 1000000 -i "rtsp://admin:admin123@10.40.20.247:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif" -c copy -vsync 1 -f segment -segment_time 600 -segment_atclocktime 0 -segment_list_flags +live -reset_timestamps 1 -strftime 1 "C:\MINDA\OBITS\BlackBox\Recordings\Normal\Dahua-5M02C9FPAG1C78A\2022-1-4\%Y.%m.%d.%H.%M.%S.avi"
Run Code Online (Sandbox Code Playgroud)

timeout ffmpeg

0
推荐指数
1
解决办法
2749
查看次数

在 GCP Dataflow/Apache Beam Python SDK 中,DoFn.process 有时间限制吗?

在 GCP Dataflow 上运行的 Apache Beam Python SDK 中,我需要DoFn.process很长时间。我的 DoFn 花了很长时间,原因并不那么重要 - 由于我无法控制的要求,我必须接受它们。但如果您必须知道的话,它对外部服务进行网络调用需要相当长的时间(几秒钟),并且它正在处理先前的多个元素GroupByKey- 导致DoFn.process调用需要几分钟的时间。

无论如何,我的问题是:通话的运行时间长度是否有时间限制DoFn.process?我这么问是因为我看到的日志如下所示:

WARNING 2023-01-03T13:12:12.679957Z ReportProgress() took long: 1m49.15726646s
WARNING 2023-01-03T13:12:14.474585Z ReportProgress() took long: 1m7.166061638s
WARNING 2023-01-03T13:12:14.864634Z ReportProgress() took long: 1m58.479671042s
WARNING 2023-01-03T13:12:16.967743Z ReportProgress() took long: 1m40.379289919s
2023-01-03 08:16:47.888 EST Error message from worker: SDK harness sdk-0-6 disconnected.
2023-01-03 08:21:25.826 EST Error message from worker: SDK harness sdk-0-2 disconnected.
2023-01-03 08:21:36.011 EST Error message from worker: SDK harness sdk-0-4 disconnected. …
Run Code Online (Sandbox Code Playgroud)

python timeout google-cloud-dataflow apache-beam apache-beam-internals

0
推荐指数
1
解决办法
653
查看次数

有时我的二进制信号量没有等待正确的时间

有时它等待的时间不够长。我可能错过了一些简单的东西 - 但我找不到它。为什么等待函数有时会过早返回

#define SEMAPHORE_MAXWAIT   -1
#define SEMAPHORE_NOWAIT    0

// Type your code here, or load an example.
typedef struct binary_semaphore {
    pthread_mutex_t mutex;
    pthread_cond_t condvar;
    bool variable;
}binary_semaphore_t;


static struct timespec *timespec_addms(struct timespec *ts, unsigned ms)
{
    uint64_t nsec;
    if(ts)
    {
        ts -> tv_sec += ms / 1000;
        nsec = ts -> tv_nsec + (ms % 1000) * 1000000ULL;
        ts -> tv_sec += nsec / 1000000000ULL;
        ts -> tv_nsec = nsec % 1000000000ULL;
    }
    return ts;
}

static int …
Run Code Online (Sandbox Code Playgroud)

c mutex timeout semaphore pthreads

0
推荐指数
1
解决办法
56
查看次数

超时已过期.操作完成之前经过的超时时间或服务器没有响应

嗨,我收到了一个错误Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
我已经改变了连接timeout = 60000,在数据库中我的程序在43秒内执行.所以PLZ给了我一些完美的解决方案

谢谢

database sql-server timeout sqlconnection connection-timeout

-1
推荐指数
1
解决办法
3万
查看次数

长时间运行的文件操作和执行超时

我被要求为我工作的组织编写一个文档管理系统,它提供了一系列与不同记录相关的九个不同的工作流程.其中的工作流程是将文档添加到"文件"或记录中,并根据业务规则将这些文档的子集发布到公共网站.

这些文件几乎无一例外地以PDF格式存在,并且通常在任何一个记录中,在任何一个时间处理的文件少于二十个.

将此作为Web应用程序构建的主要原因是将文件保留在我们的数据中心和高速交换机上,而不是通过远程站点上可能较慢的连接速度来尝试在位置之间复制和备份.

该系统运行良好,直到更大系列的文件(114个PDF文件,大小总共329MB)超过95%的时间.

代码是(IncomingDocuments类型为List <FileInfo>) -

List<string> filesSuccessfullyAdded = new List<string>();

foreach (FileInfo incomingFile in IncomingDocuments)
{
    FileOperations.AddDocument(incomingFile, false, ApplicationCode, (targetDirectoryPath.EndsWith(@"\") ? targetDirectoryPath : targetDirectoryPath + @"\"));
    FileInfo copiedDocument = new FileInfo(Path.Combine(targetDirectoryPath, incomingFile.Name));
    if (copiedDocument.Exists && copiedDocument.Length == incomingFile.Length && copiedDocument.LastWriteTime == incomingFile.LastWriteTime)
    {
        filesSuccessfullyAdded.Add(copiedDocument.Name);
    }
}

if (filesSuccessfullyAdded.Any())
{
    SetupConfirmationLiteral.Text += "<p class='info'>The following files have been successfully added to the application file-</p>";

    XDocument successfullyAddedList = new XDocument(
    new XElement("ul", new XAttribute("class", "documentList")));

    foreach (string successfulFile in filesSuccessfullyAdded) …
Run Code Online (Sandbox Code Playgroud)

c# asp.net asynchronous timeout webforms

-1
推荐指数
1
解决办法
1214
查看次数

setTimeout()不能与onClick一起使用

我有一个按钮(在apDiv126中),点击时显示图像(在apDiv129中)

<div id="apDiv126"style="display:none"><input name="Yep" type="image" src="accept.png" onClick=toggle_div('apDiv129');time('apDiv129');"></div>

<div id="apDiv129"style="display:none"><img src="request confirmed.png" width="370" height="215"></div>
Run Code Online (Sandbox Code Playgroud)

单击该按钮时,它应显示图像(使用toggle_div),然后执行时间功能:

这是时间函数:

function time(id) {
    var divelement = document.getElementById(id);
    setTimeout(function(){
        divelement.style.display = 'none'
    }, 2);
}
Run Code Online (Sandbox Code Playgroud)

时间的推移应使图像在2秒后消失.但是,当我尝试我的网页时,它甚至不显示图像.toggle_div正在工作,因为当我time('apDiv129');从onClick中删除时,会出现图像.

我也尝试在超时匿名函数中调用toggle_div,但它也不起作用.

我的问题是:onClick按给定的顺序执行函数?当我打开页面时,是否有可能超时开始"倒计时"?

html javascript timeout onclick

-1
推荐指数
1
解决办法
2285
查看次数

增加ASP.NET页面超时

我有一个长期运行的方法,可能需要一分钟.在我的本地,没关系,但在服务器上,我收到了504响应.我认为这意味着页面超时.我需要在web.config中更改SessionState吗?我尝试过,但没有帮助.

增加页面超时的属性是什么?

谢谢.

asp.net session timeout

-3
推荐指数
1
解决办法
8111
查看次数

给定的两个代码之间有什么区别.一个在ideone上运行时超出了时间限制,另一个工作正常

第一个代码:工作正常,成功时间为0秒

    int main()
    {
      int n=100000;
      for(int i=0;i<n;i++)
        for(int j=0;j<n;j++)
         {}
      cout<<"ffdfdf";
    }
Run Code Online (Sandbox Code Playgroud)

第二个代码:超出时间限制

    int main()
    {
      int n=100000;
      bool **a=new bool*[n];
      for(int i=0;i<n;i++)
      {
        bool[i]=new bool[n];
        for(int j=0;j<n;j++)
         {
           bool[i][j]=1;
         }
      }
      cout<<"ffdfdf";
    }
Run Code Online (Sandbox Code Playgroud)

任何人都可以解释为什么这两个代码片段有很大的时间差异.我不理解它.

c++ memory loops timeout

-13
推荐指数
1
解决办法
81
查看次数