Home
last modified time | relevance | path

Searched refs:timeout (Results 1 – 25 of 114) sorted by relevance

12345

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
DSocketServer.py194 timeout = None variable in BaseServer
260 timeout = self.socket.gettimeout()
261 if timeout is None:
262 timeout = self.timeout
263 elif self.timeout is not None:
264 timeout = min(timeout, self.timeout)
265 fd_sets = select.select([self], [], [], timeout)
499 timeout = 300 variable in ForkingMixIn
676 timeout = None variable in StreamRequestHandler
684 if self.timeout is not None:
[all …]
Dtelnetlib.py188 timeout=socket._GLOBAL_DEFAULT_TIMEOUT): argument
198 self.timeout = timeout
209 self.open(host, port, timeout)
211 def open(self, host, port=0, timeout=socket._GLOBAL_DEFAULT_TIMEOUT): argument
224 self.timeout = timeout
225 self.sock = socket.create_connection((host, port), timeout)
282 def read_until(self, match, timeout=None): argument
300 if timeout is not None:
301 s_args = s_args + (timeout,)
314 if timeout is not None:
[all …]
DQueue.py107 def put(self, item, block=True, timeout=None): argument
124 elif timeout is None:
127 elif timeout < 0:
130 endtime = _time() + timeout
150 def get(self, block=True, timeout=None): argument
166 elif timeout is None:
169 elif timeout < 0:
172 endtime = _time() + timeout
Durllib2.py122 def urlopen(url, data=None, timeout=socket._GLOBAL_DEFAULT_TIMEOUT): argument
126 return _opener.open(url, data, timeout)
376 def open(self, fullurl, data=None, timeout=socket._GLOBAL_DEFAULT_TIMEOUT): argument
385 req.timeout = timeout
619 return self.parent.open(new, timeout=req.timeout)
741 return self.parent.open(req, timeout=req.timeout)
872 return self.parent.open(req, timeout=req.timeout)
968 resp = self.parent.open(req, timeout=req.timeout)
1140 h = http_class(host, timeout=req.timeout) # will parse host:port
1379 fw = self.connect_ftp(user, passwd, host, port, dirs, req.timeout)
[all …]
Dasyncore.py125 def poll(timeout=0.0, map=None): argument
140 time.sleep(timeout)
144 r, w, e = select.select(r, w, e, timeout)
169 def poll2(timeout=0.0, map=None): argument
173 if timeout is not None:
175 timeout = int(timeout*1000)
190 r = pollster.poll(timeout)
203 def loop(timeout=30.0, use_poll=False, map=None, count=None): argument
214 poll_fun(timeout, map)
218 poll_fun(timeout, map)
Dsmtplib.py228 timeout=socket._GLOBAL_DEFAULT_TIMEOUT): argument
239 self.timeout = timeout
272 def _get_socket(self, port, host, timeout): argument
277 return socket.create_connection((port, host), timeout)
302 self.sock = self._get_socket(host, port, self.timeout)
764 timeout=socket._GLOBAL_DEFAULT_TIMEOUT): argument
767 SMTP.__init__(self, host, port, local_hostname, timeout)
769 def _get_socket(self, host, port, timeout): argument
772 new_socket = socket.create_connection((host, port), timeout)
Dftplib.py114 timeout=_GLOBAL_DEFAULT_TIMEOUT): argument
115 self.timeout = timeout
121 def connect(self, host='', port=0, timeout=-999): argument
130 if timeout != -999:
131 self.timeout = timeout
132 self.sock = socket.create_connection((self.host, self.port), self.timeout)
298 if self.timeout is not _GLOBAL_DEFAULT_TIMEOUT:
299 sock.settimeout(self.timeout)
327 conn = socket.create_connection((host, port), self.timeout)
352 if self.timeout is not _GLOBAL_DEFAULT_TIMEOUT:
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
DSocketServer.py204 timeout = None variable in BaseServer
271 timeout = self.socket.gettimeout()
272 if timeout is None:
273 timeout = self.timeout
274 elif self.timeout is not None:
275 timeout = min(timeout, self.timeout)
276 fd_sets = _eintr_retry(select.select, [self], [], [], timeout)
514 timeout = 300 variable in ForkingMixIn
692 timeout = None variable in StreamRequestHandler
700 if self.timeout is not None:
[all …]
/device/linaro/hikey/bluetooth/
Dasync_fd_watcher.cc50 const std::chrono::milliseconds timeout, in ConfigureTimeout() argument
56 timeout_ms_ = timeout; in ConfigureTimeout()
125 struct timeval timeout; in ThreadRoutine() local
128 timeout.tv_sec = timeout_ms_.count() / 1000; in ThreadRoutine()
129 timeout.tv_usec = (timeout_ms_.count() % 1000) * 1000; in ThreadRoutine()
130 timeout_ptr = &timeout; in ThreadRoutine()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_smtplib.py26 except socket.timeout:
93 smtp = smtplib.SMTP(HOST, self.port, timeout=None)
100 smtp = smtplib.SMTP(HOST, self.port, timeout=30)
127 except socket.timeout:
182 smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', timeout=3)
186 smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', timeout=3)
192 smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', timeout=3)
199 smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', timeout=3)
206 smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', timeout=3)
215 smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', timeout=3)
[all …]
Dtest_urllib2net.py214 if isinstance(err[0], socket.timeout):
224 except socket.timeout:
244 with test_support.transient_internet(url, timeout=None):
265 u = _urlopen_with_retry(url, timeout=None)
273 u = _urlopen_with_retry(url, timeout=120)
280 with test_support.transient_internet(self.FTP_HOST, timeout=None):
299 u = _urlopen_with_retry(self.FTP_HOST, timeout=None)
306 u = _urlopen_with_retry(self.FTP_HOST, timeout=60)
Dtest_asynchat.py122 asyncore.loop(use_poll=self.usepoll, count=300, timeout=.01)
153 asyncore.loop(use_poll=self.usepoll, count=300, timeout=.01)
174 asyncore.loop(use_poll=self.usepoll, count=300, timeout=.01)
186 asyncore.loop(use_poll=self.usepoll, count=300, timeout=.01)
196 asyncore.loop(use_poll=self.usepoll, count=300, timeout=.01)
207 asyncore.loop(use_poll=self.usepoll, count=300, timeout=.01)
219 asyncore.loop(use_poll=self.usepoll, count=300, timeout=.01)
Dtest_ftplib.py102 s = socket.create_connection((ip, port), timeout=10)
121 s = socket.create_connection((ip, port), timeout=10)
232 asyncore.loop(timeout=0.1, count=1)
406 self.client = ftplib.FTP(timeout=10)
598 self.client = ftplib.FTP_TLS(timeout=10)
611 self.client = ftplib.FTP_TLS(timeout=10)
691 except socket.timeout:
720 ftp = ftplib.FTP("localhost", timeout=None)
729 ftp = ftplib.FTP(HOST, timeout=30)
736 ftp.connect(HOST, timeout=30)
[all …]
/device/google/marlin/dataservices/datatop/src/
Ddatatop.c92 struct timeval tv, timeout; in dtop_poll_periodically() local
124 timeout.tv_sec = usr_cl_opts.poll_per; in dtop_poll_periodically()
125 timeout.tv_usec = 0; in dtop_poll_periodically()
129 timersub(&timeout,&polltime, &timeout); in dtop_poll_periodically()
130 inp = select(1, &rfds, NULL, NULL, &timeout); in dtop_poll_periodically()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
Dselectmodule.c214 double timeout; in select_select() local
233 timeout = PyFloat_AsDouble(tout); in select_select()
234 if (timeout == -1 && PyErr_Occurred()) in select_select()
236 if (timeout > (double)LONG_MAX) { in select_select()
241 seconds = (long)timeout; in select_select()
242 timeout = timeout - (double)seconds; in select_select()
244 tv.tv_usec = (long)(timeout * 1E6); in select_select()
497 int timeout = 0, poll_result, i, j; in poll_poll() local
506 timeout = -1; in poll_poll()
516 timeout = PyInt_AsLong(tout); in poll_poll()
[all …]
Dsocketmodule.c685 int timeout; in internal_select() local
691 timeout = (int)(s->sock_timeout * 1000 + 0.5); in internal_select()
692 n = poll(&pollfd, 1, timeout); in internal_select()
1641 int timeout; in sock_accept() local
1657 timeout = internal_select(s, 0); in sock_accept() local
1658 if (!timeout) in sock_accept()
1662 if (timeout == 1) { in sock_accept()
1742 double timeout; in sock_settimeout() local
1745 timeout = -1.0; in sock_settimeout()
1747 timeout = PyFloat_AsDouble(arg); in sock_settimeout()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/PyMod-2.7.2/Modules/
Dselectmodule.c214 double timeout; in select_select() local
233 timeout = PyFloat_AsDouble(tout); in select_select()
234 if (timeout == -1 && PyErr_Occurred()) in select_select()
236 if (timeout > (double)LONG_MAX) { in select_select()
241 seconds = (long)timeout; in select_select()
242 timeout = timeout - (double)seconds; in select_select()
244 tv.tv_usec = (long)(timeout * 1E6); in select_select()
497 int timeout = 0, poll_result, i, j; in poll_poll() local
506 timeout = -1; in poll_poll()
516 timeout = PyInt_AsLong(tout); in poll_poll()
[all …]
/device/google/contexthub/util/stm32_flash/
Dspi.c97 uint16_t timeout = 65535; in spi_read_ack() local
114 timeout --; in spi_read_ack()
115 } while (buffer[0] != CMD_ACK && buffer[0] != CMD_NACK && timeout > 0); in spi_read_ack()
117 if (buffer[0] != CMD_ACK && buffer[0] != CMD_NACK && timeout == 0) in spi_read_ack()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/PyMod-2.7.10/Modules/
Dselectmodule.c214 double timeout; in select_select() local
233 timeout = PyFloat_AsDouble(tout); in select_select()
234 if (timeout == -1 && PyErr_Occurred()) in select_select()
236 if (timeout > (double)LONG_MAX) { in select_select()
241 seconds = (long)timeout; in select_select()
242 timeout = timeout - (double)seconds; in select_select()
244 tv.tv_usec = (long)(timeout * 1E6); in select_select()
519 int timeout = 0, poll_result, i, j; in poll_poll() local
528 timeout = -1; in poll_poll()
538 timeout = _PyInt_AsInt(tout); in poll_poll()
[all …]
/device/google/dragon/sensor_hub/
Dsensors.h62 int batch(int handle, int flags, int64_t period_ns, int64_t timeout);
73 int handle, int flags, int64_t period_ns, int64_t timeout);
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/
Dsocketmodule.c701 int timeout; in internal_select_ex() local
707 timeout = (int)(interval * 1000 + 0.5); in internal_select_ex()
708 n = poll(&pollfd, 1, timeout); in internal_select_ex()
1706 int timeout; in sock_accept() local
1719 timeout = internal_select_ex(s, 0, interval); in sock_accept()
1720 if (!timeout) in sock_accept()
1724 if (timeout == 1) { in sock_accept()
1801 double timeout; in sock_settimeout() local
1804 timeout = -1.0; in sock_settimeout()
1806 timeout = PyFloat_AsDouble(arg); in sock_settimeout()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/
Dthread_atheos.h30 static int fastmutex_timedlock(fastmutex_t * mutex, bigtime_t timeout);
60 static int fastmutex_timedlock(fastmutex_t * mutex, bigtime_t timeout) in fastmutex_timedlock() argument
64 return lock_semaphore_x(mutex->sem, 1, 0, timeout); in fastmutex_timedlock()
/device/linaro/hikey/installer/hikey/
Dhisi-idt.py77 self.s = serial.Serial(port=serialport, baudrate=115200, timeout=1)
117 self.s.timeout = 0.01
125 self.s.timeout = 0.03
145 self.s.timeout = 0.15
/device/generic/goldfish/camera/
DEmulatedCameraDevice.cpp473 EmulatedCameraDevice::CameraThread::waitForFrameOrTimeout(nsecs_t timeout) { in waitForFrameOrTimeout() argument
481 mRunningCondition.waitRelative(mRunningMutex, timeout); in waitForFrameOrTimeout()
488 timeout = milliseconds(5); in waitForFrameOrTimeout()
499 nsecs_t timeout = std::max<nsecs_t>(0, wakeAt - now); in inWorkerThread() local
501 if (!waitForFrameOrTimeout(timeout)) { in inWorkerThread()
640 nsecs_t timeout = std::max<nsecs_t>(0, nextFrame - now); in inWorkerThread() local
644 mRunningCondition.waitRelative(mRunningMutex, timeout); in inWorkerThread()
/device/google/accessory/arduino/USB_Host_Shield/
DUsb.cpp238 unsigned long timeout = millis() + USB_XFER_TIMEOUT; in outTransfer() local
255 while( rcode && ( timeout > millis())) { in outTransfer()
294 unsigned long timeout = millis() + USB_XFER_TIMEOUT; in dispatchPkt() local
300 while( timeout > millis() ) { in dispatchPkt()
303 while( millis() < timeout ) { //wait for transfer completion in dispatchPkt()

12345