Tarkeshwar's Blog

  • Archive
  • RSS
  • Ask me anything

Tornado FD leak

[W 101119 13:49:59 iostream:190] Read error on 33: [Errno 104]
Connection reset by peer

Tornado doesn’t have a timeout for idle connections - it will let the
connection stay alive as long as the client holds the connection open.
It’s possible you’ve got some other kind of file descriptor leak, but
if the problem is idle connections then you can either disable all
connection reuse by passing no_keepalive=True to your HTTPServer
constructor, or run behind nginx, which is (I assume) more
sophisticated about managing idle connections.

  • 6 hours ago
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

A/B testing significance calculator

    • #gid
  • 7 hours ago
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

Removing a git submodule

1. Delete the relevant line from the .gitmodules file.
2. Delete the relevant section from .git/config.
3. Run git rm —cached path_to_submodule (no trailing slash).
4. Commit

  • 19 hours ago
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

Linux performance talk

Overview of tools.

  • 3 days ago
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

Android fragments overlapping

  • http: //stackoverflow.com/questions/12529499/problems-with-android-fragment-back-stack
  • http: //stackoverflow.com/questions/14269350/how-to-keep-only-first-added-fragment-in-back-stack-fragment-overlapping
  • 1 week ago
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

Disable oom killer

Log in /var/syslog

sudo su
pgrep -f “memcache” | while read PID; do echo -17 > /proc/$PID/oom_adj; done

  • 2 weeks ago
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

Tool for finding email

  • 3 weeks ago
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

debugging android over tcp

adb tcpip adb connect 192.168.1.140 (shown on phone>wifi>) adb usb # to go back to usb mode

  • 1 month ago
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

Upgrading nginx

sudo -s
nginx -v # shows old version
nginx=stable # use nginx=development for latest development version
add-apt-repository ppa:nginx/$nginx
apt-get update
apt-get install nginx-full
nginx -v # shows new version

  • 1 month ago
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

nice product tips

http://www.cindyalvarez.com/roundups/10-things-ive-learned

    • #JustMigrate
  • 5 months ago
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+
Page 1 of 10
← Newer • Older →

About

Co-Founder at Chatimity - an app to Make New Friends online. Ex-Googler. Based in Bangalore.
  • RSS
  • Random
  • Archive
  • Ask me anything
  • Mobile
Effector Theme by Pixel Union