| 156 | return False |
| 157 | |
| 158 | def put(self, obj: Any, routing_id: Optional[bytes] = None): |
| 159 | self.setup_lazily() |
| 160 | self._check_thread_safety() |
| 161 | with nvtx_range_debug("send", color="blue", category="IPC"): |
| 162 | if self.use_hmac_encryption or self.socket_type == zmq.ROUTER: |
| 163 | # Need manual serialization for encryption or ROUTER multipart |
| 164 | data = self._prepare_data(obj) |
| 165 | self._send_data(data, routing_id=routing_id) |
| 166 | else: |
| 167 | # Standard socket without encryption - use pyobj directly |
| 168 | self.socket.send_pyobj(obj) |
| 169 | |
| 170 | def put_noblock(self, |
| 171 | obj: Any, |