Ticket #781: trigger-remote-fd-leak

File trigger-remote-fd-leak, 389 bytes (added by Olly Betts, 6 years ago)

script to reproduce

Line 
1#!/bin/sh
2set -e
3
4port=5050
5
6echo "Starting xapian-tcpsrv"
7rm -rf tmp.db
8bin/xapian-tcpsrv --writable --one-shot --port "$port" --interface localhost tmp.db &
9
10sleep 1
11
12echo "Opening DB for writing in background"
13(sleep 10|examples/simpleindex tmp.db &)
14
15sleep 1
16
17echo "remote localhost:$port" > tmp.stub
18
19ps ux|grep simpleindex
20echo "Trying to open remote"
21./tst-remote-leak
22
23echo "Done"