Article ID: 000090960 Content Type: Troubleshooting Last Reviewed: 11/27/2023

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 immediate 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