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

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

BUILT IN - ARTICLE INTRO SECOND COMPONENT
Summary

Available options to specify the timeout amount for the receive function.

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