timeout   1548

« earlier    

Automatically perform action in client side when the session expires - Stack Overflow
You can use PrimeFaces idle monitor for this. User is redirected to logout action after timeout to invalidate the session. 2 minutes before a countdown dialog is shown to warn user. After moving the mouse again session is extended.
jsf  primefaces  development  software  timeout  session 
6 weeks ago by rsewan
Best practice with retries with requests - Peterbe.com
I have a lot of code that does response = requests.get(...) in various Python projects. This is nice and simple but the problem is that networks are unreliable. So it's a good idea to wrap these network calls with retries. Here's one such implementation.
python  requests  timeout 
11 weeks ago by lbjay
Fix for WiFi Push Notifications Delay on Android - Stack Pointer
Brief Introduction to Google Push Notifications

In a nutshell, Google’s push notifications service work by making a connection on TCP port 5228 between the phone and Google servers.

Normally, TCP connections will be forced closed after an idle timeout. To prevent the connection from timing out, Android sends a periodic heartbeat every 15 minutes if you are on WiFi and every 28 minutes if you are on a mobile data connection.

So if the TCP connection is terminated by a network element (e.g. the WiFi router in this case) due to a TCP timeout, any new push notifications from Google servers will not be sent to the Android device. The push notifications will only be received when the mobile phone re-establishes the connection by sending a heartbeat to the Google push notification servers.
Fix on WiFi Router

To fix the problem, we will have to make sure that the TCP timeout on the WiFi router is more than 15 minutes.
router tcp settings for google push notifications delay

I had initially tuned the TCP parameters on my WiFi router to improve the performance of P2P applications. One of the parameters that I modified was the TCP timeout parameter – I had changed it to 10 minutes from the default setting of 20 minutes (1200 seconds). I reverted the changes and reset the timeout to 20 minutes (or 1200 seconds).

Similarly, on your router, look for a “TCP Timeout” or similar setting and set it 20 minutes (with a buffer of 5 minutes in addition to the 15 minute heartbeat interval).

After the changes were made on my WiFi router, I did not experience any further delay on push notifications on my Android phone.
Alternative Fix on Android Mobile

If you are unable to modify the settings on your WiFi router for whatever reason, or if you suspect that it’s not the WiFi router issue, then there’s another alternative – reduce the heartbeat timer on your Android mobile.

To do that, install the Push Notifications Fixer app on your mobile. This app allows you to reduce the heartbeat interval to a low value (recommended value of 5 minutes) thereby increasing the chances of keeping the connection alive.
android  pushnotifications  router  keepalive  timeout 
august 2019 by noah
python - What is the global default timeout - Stack Overflow | https://stackoverflow.com/
The answer is it's compiled into the kernel. Just use the 'timeout=' parameter to urlllib.request.urlopen if you're tired of waiting.
python  webdevel  timeout  urllib  sortof  solution 
july 2019 by kme
Very slow ssh logins on Fedora 22 · major.io
"systemctl restart systemd-logind.service" to fix "Failed to activate service 'org.freedesktop.login1': timed out" in /var/log/syslog
systemd  timeout  ssh  login 
july 2019 by clepple

« earlier    

related tags

1  500  a  activerecord  all  and  android  app  arcade  architecture  article  asteroids  async  asynchronous  await  aws  azure  babel  bar  barcelona  blowout  bluetooth  broker  brown  buffer  c#  cabinet  cache  café  cancel  cancellationscopes  cask  catalunya  cave  center  centipede  centre  chunk  chunking  circuitbreaker  citrix  cli  clojure  coding  coffee  comics  command  commandtimeout  config  connection  consequences  console  coreasync  crux  daemon  dapper  database  dbus  dconf  death  declutter  decorator  default  defer  deferred  delivery  development  dialog  digihealth  digital  discussion  distance  document  during  elisp  elixir  elpa  emacs  email  emotion  emotions  entropy  error  ert  events  evince  example  excellent  fallback  fighter  filemgr  flaky  fm  focus  fridayfrontend  galaga  game  games  github  gnome  go  golang  goroutine  got  great  gsetting  gsettings  gsuite  gtk  guide  gvfsd  hcio  helper  hooks  http  httpclient  https  icmp  idle  iedit  in  inactivity  interval  into  it  javascript  jaylen  jscript  jsf  keepalive  la  lambda  learn  library  light  linux  lisp  list  listing  literate  local  lock  login  london  losangeles  loss  man  manage  mancave  marcus  maximum  meet  metadata  mikrotik  miles  milk  milkman  missile  mobile  mochajs  mode  morris  movies  mtu  multi  multiple  multitasking  nautilus  netty  network  networking  networks  node-red  nodesktop  nostalgia  notify  nowindow  of  offline  openfile  oracle  org  out  overall  package  pacman  pallet  parallel  parenting  paulownia  performance  performane  personal  phoenix  polarity  positive  postgres  postgresql  power  practice  primefaces  programming  promise  push  pushnotifications  pvs  pwa  python  rachel  rails  reached  react  recommendations  redis  reference  region  registering  repo  requests  reset  resilience  retransmissions  retro  retry  reviews  router  ruby  rules  samba  scargill  scheme  scraping  scrollbar  selenium  server  service  servicebyname  serviceworkers  session  setinterval  settimeout  settings  share  shopping  signal  sleep  sockets  software  solution  sortof  speed  sql  ssh  start  startservicebyname  street  stumpwm  supply  sysemd  systemd  tangle  tcp  teach  tech  temperature  test  testing  thread  threading  tika  time  timeouts  timer  timers  tls  top100  toread  tracking  train  travel  travis  ts-100  ts100  ubuntu  unit  urllib  useeffect  user  ut  vfs  video  visit  wait  wallet  web  webdevel  webdevelopment  weblogic  webservice  will  wmlogin  writing  xenapp  xinitrc  zsh 

Copy this bookmark:



description:


tags: