Skip To Main Content
Support Knowledge Base

Unable to Specify Timeout in subscriber.recv() Function on Intel® Edge Insights for Industrial

Content Type: Troubleshooting   |   Article ID: 000090960   |   Last Reviewed: 10/11/2024

Description

Resolution

The recv() method has three ways of being called:

  1. recv() or recv(-1) - blocks indefinitely until a new message is received.
  2. recv(0) - returns immediately if no message is received.
  3. recv(timeout) - waits for the specified timeout to receive a message.
    • For example, recv(timeout=1000) will wait for 1000 milliseconds.

Related Products

This article applies to 1 products.