v.yurin@hell:~$ uname -a
Linux hell 3.17.3-1-ARCH #1 SMP PREEMPT Fri Nov 14 23:13:48 CET 2014 x86_64 GNU/Linux
v.yurin@hell:~/test$ erl
Erlang/OTP 17 [erts-6.2] [source] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false]

Eshell V6.2  (abort with ^G)
1> L = send_file_test:start().
Listen on 59690
#Port<0.563>
2> send_file_test:one_client(L, [], 1).
ok
Send file 1
3> send_file_test:one_client(L, [{delay_send, true}, {nodelay, false}], 1). 
ok
Send file 1
4> send_file_test:one_client(L, [{delay_send, true}, {nodelay, false}, {send_timeout, 1000}], 200).                                                        
ok
Send file 200
Send file 199
Send file 198
Send file 197
Send file 196
Send file 195
Send file 194
Send file 193
Send file 192
Send file 191
Send file 190
Send file 189
Send file 188
Send file 187
Send file 186
Send file 185
Send file 184
Send file 183
Send file 182
Send file 181
Send file 180
Send file 179
Send file 178
Send file 177
Send file 176
Send file 175
Send file 174
Send file 173
Send file 172
Send file 171
Send file 170
Send file 169
Send file 168
Send file 167
Send file 166
Send file 165
Send file 164
Send file 163
Send file 162
Send file 161
Send file 160
Send file 159
Send file 158
Send file 157
Send file 156
Send file 155
Send file 154
Send file 153
Send file 152
Send file 151
Send file 150
Send file 149
Send file 148
Send file 147
Send file 146
Send file 145
Send file 144
Send file 143
Send file 142
Send file 141
Send file 140
Send file 139
Send file 138
Send file 137
Send file 136
Send file 135
Send file 134
Send file 133
Send file 132
Send file 131
Send file 130
Send file 129
Send file 128
Send file 127
Send file 126
Send file 125
Send file 124
Send file 123
Send file 122
Send file 121
Send file 120
Send file 119
Send file 118
Send file 117
Send file 116
Send file 115
Send file 114
Send file 113
Send file 112
Send file 111
Send file 110
Send file 109
Send file 108
Send file 107
Send file 106
Send file 105
Send file 104
Send file 103
Send file 102
Send file 101
Send file 100
Send file 99
Send file 98
Send file 97
Send file 96
Send file 95
Send file 94
Send file 93
Send file 92
Send file 91
Send file 90
Send file 89
Send file 88
Send file 87
Send file 86
Send file 85
Send file 84
Send file 83
5> 
=ERROR REPORT==== 10-Dec-2014::12:45:28 ===
Error in process <0.40.0> with exit value: {{badmatch,{error,timeout}},[{send_file_test,loop,3,[{file,"send_file_test.erl"},{line,37}]}]}

5> send_file_test:one_client(L, [{delay_send, true}, {nodelay, false}], 200).       ok             
Send file 200
Send file 199
Send file 198
Send file 197
Send file 196
Send file 195
Send file 194
Send file 193
Send file 192
Send file 191
Send file 190
Send file 189
Send file 188
Send file 187
Send file 186
Send file 185
Send file 184
Send file 183
Send file 182
Send file 181
Send file 180
Send file 179
Send file 178
Send file 177
Send file 176
Send file 175
Send file 174
Send file 173
Send file 172
Send file 171
Send file 170
Send file 169
Send file 168
Send file 167
Send file 166
Send file 165
Send file 164
Send file 163
Send file 162
Send file 161
Send file 160
Send file 159
Send file 158
Send file 157
Send file 156
Send file 155
Send file 154
Send file 153
Send file 152
Send file 151
Send file 150
Send file 149
Send file 148
Send file 147
Send file 146
Send file 145
Send file 144
Send file 143
Send file 142
Send file 141
Send file 140
Send file 139
Send file 138
Send file 137
Send file 136
Send file 135
Send file 134
Send file 133
Send file 132
Send file 131
Send file 130
Send file 129
Send file 128
Send file 127
Send file 126
Send file 125
Send file 124
Send file 123
Send file 122
Send file 121
Send file 120
Send file 119
Send file 118
Send file 117
Send file 116
Send file 115
Send file 114
Send file 113
Send file 112
Send file 111
Send file 110
Send file 109
Send file 108
Send file 107
Send file 106
Send file 105
Send file 104
Send file 103
Send file 102
Send file 101
Send file 100
Send file 99
Send file 98
Send file 97
Send file 96
Send file 95
Send file 94
Send file 93
Send file 92
Send file 91
Send file 90
Send file 89
Send file 88
Send file 87
Send file 86
Send file 85
Send file 84
Send file 83
6> now().
{1418,194038,215600}
7> now().
{1418,194077,282560}
8> "send hang ...".
