PageRenderTime 14ms CodeModel.GetById 2ms app.highlight 7ms RepoModel.GetById 1ms app.codeStats 0ms

/src/Suave.Tests/Bug106-ReadingInputData.txt

http://github.com/ademar/suave
Plain Text | 361 lines | 342 code | 19 blank | 0 comment | 0 complexity | e6e97eb3552128375037afa50cd871c0 MD5 | raw file
  1
  2Microsoft (R) F# Interactive version 11.0.60610.1
  3Copyright (c) Microsoft Corporation. All Rights Reserved.
  4
  5For help type #help;;
  6
  7> 
  8
  9--> Referenced 'W:\_vendor\suave\Tests\bin/Release/suave.dll'
 10
 11
 12--> Referenced 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Net.dll'
 13
 14
 15--> Referenced 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Net.Http.dll'
 16
 17
 18--> Referenced 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Xml.dll'
 19
 20
 21--> Referenced 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Xml.Linq.dll'
 22
 23[I] 2014-05-02T11:49:50.2538491Z: started listener in: started in 15.545100 ms: 127.0.0.1:8083 [Tcp.tcp_ip_server]
 24
 25module XD = begin
 26  val mk_xdoc : raw_bytes:byte [] -> System.Xml.Linq.XDocument
 27end
 28module SystemUnderTest = begin
 29  val app : (Suave.Types.HttpContext -> Async<unit> option)
 30  val conf : Suave.Types.SuaveConfig =
 31    {bindings = [{scheme = HTTP;
 32                  ip = 127.0.0.1;
 33                  port = 8083us;}];
 34     error_handler = <fun:conf@39>;
 35     web_part_timeout = 05:00:00;
 36     listen_timeout = 00:00:02;
 37     ct = System.Threading.CancellationToken;
 38     buffer_size = 8192;
 39     max_ops = 100;
 40     mime_types_map = <fun:default_config@594-1>;
 41     home_folder = null;
 42     compressed_files_folder = null;
 43     logger = Suave.Log+Loggers+CombiningLogger;}
 44  val run : unit -> unit
 45end
 46module Client = begin
 47  val client_post :
 48    uri:System.Uri ->
 49      ct:System.Threading.CancellationToken ->
 50        client:System.Net.Http.HttpClient ->
 51          data:#System.Net.Http.HttpContent ->
 52            Async<System.Net.Http.HttpResponseMessage>
 53  val uri : str:string -> System.Uri
 54  val with_client :
 55    f:(System.Threading.CancellationTokenSource ->
 56         System.Net.Http.HttpClientHandler -> System.Net.Http.HttpClient -> 'a) ->
 57      'a
 58  val posts : int ref = {contents = 0;}
 59  val post : data:byte [] -> System.Net.Http.HttpResponseMessage
 60  val post_and_assert : (byte [] -> unit)
 61  val ad : byte [] =
 62    [|239uy; 187uy; 191uy; 60uy; 63uy; 120uy; 109uy; 108uy; 32uy; 118uy; 101uy;
 63      114uy; 115uy; 105uy; 111uy; 110uy; 61uy; 34uy; 49uy; 46uy; 48uy; 34uy;
 64      32uy; 101uy; 110uy; 99uy; 111uy; 100uy; 105uy; 110uy; 103uy; 61uy; 34uy;
 65      117uy; 116uy; 102uy; 45uy; 56uy; 34uy; 63uy; 62uy; 13uy; 10uy; 60uy;
 66      69uy; 110uy; 118uy; 101uy; 108uy; 111uy; 112uy; 101uy; 32uy; 120uy;
 67      109uy; 108uy; 110uy; 115uy; 58uy; 120uy; 115uy; 100uy; 61uy; 34uy; 104uy;
 68      116uy; 116uy; 112uy; 58uy; 47uy; 47uy; 119uy; 119uy; 119uy; 46uy; 119uy;
 69      51uy; 46uy; 111uy; 114uy; 103uy; 47uy; 50uy; 48uy; 48uy; 49uy; 47uy;
 70      88uy; 77uy; 76uy; 83uy; 99uy; 104uy; 101uy; 109uy; 97uy; 34uy; 32uy;
 71      120uy; 109uy; ...|]
 72  val gen : len:int -> byte []
 73  val run : rnd:System.Random option -> unit
 74end
 75val it : unit = ()
 76
 77> 
 78client running with seed: -993255645
 79#1|2841652
 80[V] 2014-05-02T11:49:55.7916668Z: 127.0.0.1 connected, total: 1 clients [Tcp.tcp_ip_server.job]
 81[V] 2014-05-02T11:49:55.7916668Z: reserving buffer: 811008, free count: 99 [Tcp.tcp_ip_server.job] [Socket.BufferManager]
 82[V] 2014-05-02T11:49:55.8072847Z: -> processor [Web.request_loop.loop]
 83[V] 2014-05-02T11:49:55.8072847Z: reserving buffer: 802816, free count: 98 [read_till_EOL.read_data] [Socket.BufferManager]
 84[V] 2014-05-02T11:49:55.8228401Z: freeing buffer: 802816, free count: 99 [read_till_EOL.scan_data (Some x = pair.offset (if1))] [Socket.BufferManager]
 85[V] 2014-05-02T11:49:55.8384392Z: reserving buffer: 802816, free count: 98 [read_post_data] [Socket.BufferManager]
 86[V] 2014-05-02T11:49:56.1816458Z: freeing buffer: 802816, free count: 99 [read_post_data] [Socket.BufferManager]
 87[V] 2014-05-02T11:49:56.1972253Z: <- processor [Web.request_loop.loop]
 88.[V] 2014-05-02T11:49:56.2440440Z: 'Connection: keep-alive' recurse, rem: <null> [Web.request_loop.loop]
 89[V] 2014-05-02T11:49:56.2440440Z: -> processor [Web.request_loop.loop]
 90[V] 2014-05-02T11:49:56.2440440Z: reserving buffer: 802816, free count: 98 [read_till_EOL.read_data] [Socket.BufferManager]
 91[V] 2014-05-02T11:49:56.2440440Z: freeing buffer: 802816, free count: 99 [read_till_EOL.read_data (exception case)] [Socket.BufferManager]
 92[V] 2014-05-02T11:49:56.2440440Z: <- processor [Web.request_loop.loop]
 93[V] 2014-05-02T11:49:56.2440440Z: 'result = None', exiting [Web.request_loop.loop]
 94[V] 2014-05-02T11:49:56.2596271Z: freeing buffer: 811008, free count: 100 [Tcp.tcp_ip_server.job] [Socket.BufferManager]
 95[V] 2014-05-02T11:49:56.2596271Z: 127.0.0.1 disconnected, total: 0 clients [Tcp.tcp_ip_server.job]
 96#2|1819292
 97[V] 2014-05-02T11:49:56.2752226Z: 127.0.0.1 connected, total: 1 clients [Tcp.tcp_ip_server.job]
 98[V] 2014-05-02T11:49:56.2752226Z: reserving buffer: 811008, free count: 99 [Tcp.tcp_ip_server.job] [Socket.BufferManager]
 99[V] 2014-05-02T11:49:56.2752226Z: -> processor [Web.request_loop.loop]
100[V] 2014-05-02T11:49:56.2752226Z: reserving buffer: 802816, free count: 98 [read_till_EOL.read_data] [Socket.BufferManager]
101[V] 2014-05-02T11:49:56.2752226Z: freeing buffer: 802816, free count: 99 [read_till_EOL.scan_data (Some x = pair.offset (if1))] [Socket.BufferManager]
102[V] 2014-05-02T11:49:56.2752226Z: reserving buffer: 802816, free count: 98 [read_post_data] [Socket.BufferManager]
103[V] 2014-05-02T11:49:56.2908271Z: freeing buffer: 802816, free count: 99 [read_post_data] [Socket.BufferManager]
104[V] 2014-05-02T11:49:56.2908271Z: <- processor [Web.request_loop.loop]
105[V] 2014-05-02T11:49:56.3064614Z: 'Connection: keep-alive' recurse (!) [Web.request_loop.loop]
106[V] 2014-05-02T11:49:56.3064614Z: -> processor [Web.request_loop.loop]
107[V] 2014-05-02T11:49:56.3064614Z: reserving buffer: 802816, free count: 98 [read_till_EOL.read_data] [Socket.BufferManager]
108.[V] 2014-05-02T11:49:56.3064614Z: freeing buffer: 802816, free count: 99 [read_till_EOL.read_data (exception case)] [Socket.BufferManager]
109[V] 2014-05-02T11:49:56.3064614Z: <- processor [Web.request_loop.loop]
110[V] 2014-05-02T11:49:56.3064614Z: 'result = None', exiting [Web.request_loop.loop]
111[V] 2014-05-02T11:49:56.3064614Z: freeing buffer: 811008, free count: 100 [Tcp.tcp_ip_server.job] [Socket.BufferManager]
112[V] 2014-05-02T11:49:56.3064614Z: 127.0.0.1 disconnected, total: 0 clients [Tcp.tcp_ip_server.job]
113#3|2036112
114[V] 2014-05-02T11:49:56.3221092Z: 127.0.0.1 connected, total: 1 clients [Tcp.tcp_ip_server.job]
115[V] 2014-05-02T11:49:56.3221092Z: reserving buffer: 811008, free count: 99 [Tcp.tcp_ip_server.job] [Socket.BufferManager]
116[V] 2014-05-02T11:49:56.3221092Z: -> processor [Web.request_loop.loop]
117[V] 2014-05-02T11:49:56.3221092Z: reserving buffer: 802816, free count: 98 [read_till_EOL.read_data] [Socket.BufferManager]
118[V] 2014-05-02T11:49:56.3221092Z: freeing buffer: 802816, free count: 99 [read_till_EOL.scan_data (Some x = pair.offset (if2))] [Socket.BufferManager]
119[V] 2014-05-02T11:49:56.3221092Z: reserving buffer: 802816, free count: 98 [read_post_data] [Socket.BufferManager]
120[V] 2014-05-02T11:49:56.3376150Z: <- processor [Web.request_loop.loop]
121[V] 2014-05-02T11:49:56.3376150Z: 'result = None', exiting [Web.request_loop.loop]
122[V] 2014-05-02T11:49:56.3376150Z: freeing buffer: 811008, free count: 99 [Tcp.tcp_ip_server.job] [Socket.BufferManager]
123[V] 2014-05-02T11:49:56.3376150Z: 127.0.0.1 disconnected, total: 0 clients [Tcp.tcp_ip_server.job]
124System.AggregateException: One or more errors occurred. ---> System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a receive. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
125   at System.Net.Sockets.Socket.EndReceive(IAsyncResult asyncResult)
126   at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult)
127   --- End of inner exception stack trace ---
128   at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult)
129   at System.Net.PooledStream.EndRead(IAsyncResult asyncResult)
130   at System.Net.Connection.ReadCallback(IAsyncResult asyncResult)
131   --- End of inner exception stack trace ---
132   at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
133   at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)
134   --- End of inner exception stack trace ---
135   --- End of inner exception stack trace ---
136   at Microsoft.FSharp.Control.AsyncBuilderImpl.commit[a](Result`1 res)
137   at Microsoft.FSharp.Control.CancellationTokenOps.RunSynchronously[a](CancellationToken token, FSharpAsync`1 computation, FSharpOption`1 timeout)
138   at Microsoft.FSharp.Control.FSharpAsync.RunSynchronously[T](FSharpAsync`1 computation, FSharpOption`1 timeout, FSharpOption`1 cancellationToken)
139   at FSI_0002.Client.with_client[a](FSharpFunc`2 f) in W:\_vendor\suave\Tests\Bug105-StopsResponding.fsx:line 67
140   at FSI_0002.Client.post(Byte[] data) in W:\_vendor\suave\Tests\Bug105-StopsResponding.fsx:line 73
141   at FSI_0002.Client.post_and_assert@79.Invoke(Byte[] x) in W:\_vendor\suave\Tests\Bug105-StopsResponding.fsx:line 79
142   at FSI_0002.Client.run(FSharpOption`1 rnd) in W:\_vendor\suave\Tests\Bug105-StopsResponding.fsx:line 96
143---> (Inner Exception #0) System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a receive. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
144   at System.Net.Sockets.Socket.EndReceive(IAsyncResult asyncResult)
145   at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult)
146   --- End of inner exception stack trace ---
147   at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult)
148   at System.Net.PooledStream.EndRead(IAsyncResult asyncResult)
149   at System.Net.Connection.ReadCallback(IAsyncResult asyncResult)
150   --- End of inner exception stack trace ---
151   at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
152   at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)
153   --- End of inner exception stack trace ---<---
154
155#4|5190452
156[V] 2014-05-02T11:49:57.5232309Z: 127.0.0.1 connected, total: 1 clients [Tcp.tcp_ip_server.job]
157[V] 2014-05-02T11:49:57.5232309Z: reserving buffer: 811008, free count: 98 [Tcp.tcp_ip_server.job] [Socket.BufferManager]
158[V] 2014-05-02T11:49:57.5232309Z: -> processor [Web.request_loop.loop]
159[V] 2014-05-02T11:49:57.5232309Z: reserving buffer: 794624, free count: 97 [read_till_EOL.read_data] [Socket.BufferManager]
160[V] 2014-05-02T11:49:57.5232309Z: freeing buffer: 794624, free count: 98 [read_till_EOL.scan_data (Some x = pair.offset (if1))] [Socket.BufferManager]
161[V] 2014-05-02T11:49:57.5232309Z: reserving buffer: 794624, free count: 97 [read_post_data] [Socket.BufferManager]
162[V] 2014-05-02T11:49:57.9287613Z: freeing buffer: 794624, free count: 98 [read_post_data] [Socket.BufferManager]
163[V] 2014-05-02T11:49:57.9443796Z: <- processor [Web.request_loop.loop]
164[V] 2014-05-02T11:49:57.9755800Z: 'Connection: keep-alive' recurse, rem: <null> [Web.request_loop.loop]
165[V] 2014-05-02T11:49:57.9755800Z: -> processor [Web.request_loop.loop]
166[V] 2014-05-02T11:49:57.9755800Z: reserving buffer: 794624, free count: 97 [read_till_EOL.read_data] [Socket.BufferManager]
167.[V] 2014-05-02T11:49:57.9755800Z: freeing buffer: 794624, free count: 98 [read_till_EOL.read_data (exception case)] [Socket.BufferManager]
168[V] 2014-05-02T11:49:57.9755800Z: <- processor [Web.request_loop.loop]
169[V] 2014-05-02T11:49:57.9755800Z: 'result = None', exiting [Web.request_loop.loop]
170[V] 2014-05-02T11:49:57.9755800Z: freeing buffer: 811008, free count: 99 [Tcp.tcp_ip_server.job] [Socket.BufferManager]
171[V] 2014-05-02T11:49:57.9755800Z: 127.0.0.1 disconnected, total: 0 clients [Tcp.tcp_ip_server.job]
172#5|18141812
173[V] 2014-05-02T11:49:58.2407572Z: 127.0.0.1 connected, total: 1 clients [Tcp.tcp_ip_server.job]
174[V] 2014-05-02T11:49:58.2407572Z: reserving buffer: 811008, free count: 98 [Tcp.tcp_ip_server.job] [Socket.BufferManager]
175[V] 2014-05-02T11:49:58.2407572Z: -> processor [Web.request_loop.loop]
176[V] 2014-05-02T11:49:58.2407572Z: reserving buffer: 794624, free count: 97 [read_till_EOL.read_data] [Socket.BufferManager]
177[V] 2014-05-02T11:49:58.2407572Z: freeing buffer: 794624, free count: 98 [read_till_EOL.scan_data (Some x = pair.offset (if1))] [Socket.BufferManager]
178[V] 2014-05-02T11:49:58.2407572Z: reserving buffer: 794624, free count: 97 [read_post_data] [Socket.BufferManager]
179[V] 2014-05-02T11:49:58.3655371Z: freeing buffer: 794624, free count: 98 [read_post_data] [Socket.BufferManager]
180[V] 2014-05-02T11:49:58.3655371Z: <- processor [Web.request_loop.loop]
181[V] 2014-05-02T11:49:58.5371465Z: 'Connection: keep-alive' recurse (!) [Web.request_loop.loop]
182[V] 2014-05-02T11:49:58.5371465Z: -> processor [Web.request_loop.loop]
183[V] 2014-05-02T11:49:58.5371465Z: reserving buffer: 794624, free count: 97 [read_till_EOL.read_data] [Socket.BufferManager]
184[V] 2014-05-02T11:49:58.5371465Z: freeing buffer: 794624, free count: 98 [read_till_EOL.read_data (exception case)] [Socket.BufferManager]
185.[V] 2014-05-02T11:49:58.5371465Z: <- processor [Web.request_loop.loop]
186[V] 2014-05-02T11:49:58.5371465Z: 'result = None', exiting [Web.request_loop.loop]
187[V] 2014-05-02T11:49:58.5371465Z: freeing buffer: 811008, free count: 99 [Tcp.tcp_ip_server.job] [Socket.BufferManager]
188[V] 2014-05-02T11:49:58.5371465Z: 127.0.0.1 disconnected, total: 0 clients [Tcp.tcp_ip_server.job]
189#6|4183292
190[V] 2014-05-02T11:49:58.5839443Z: 127.0.0.1 connected, total: 1 clients [Tcp.tcp_ip_server.job]
191[V] 2014-05-02T11:49:58.5839443Z: reserving buffer: 811008, free count: 98 [Tcp.tcp_ip_server.job] [Socket.BufferManager]
192[V] 2014-05-02T11:49:58.5839443Z: -> processor [Web.request_loop.loop]
193[V] 2014-05-02T11:49:58.5839443Z: reserving buffer: 794624, free count: 97 [read_till_EOL.read_data] [Socket.BufferManager]
194[V] 2014-05-02T11:49:58.5839443Z: freeing buffer: 794624, free count: 98 [read_till_EOL.scan_data (Some x = pair.offset (if1))] [Socket.BufferManager]
195[V] 2014-05-02T11:49:58.5839443Z: reserving buffer: 794624, free count: 97 [read_post_data] [Socket.BufferManager]
196[V] 2014-05-02T11:49:58.6151380Z: freeing buffer: 794624, free count: 98 [read_post_data] [Socket.BufferManager]
197[V] 2014-05-02T11:49:58.6619300Z: <- processor [Web.request_loop.loop]
198.[V] 2014-05-02T11:49:58.6931273Z: 'Connection: keep-alive' recurse (!) [Web.request_loop.loop]
199[V] 2014-05-02T11:49:58.6931273Z: -> processor [Web.request_loop.loop]
200[V] 2014-05-02T11:49:58.6931273Z: reserving buffer: 794624, free count: 97 [read_till_EOL.read_data] [Socket.BufferManager]
201[V] 2014-05-02T11:49:58.6931273Z: freeing buffer: 794624, free count: 98 [read_till_EOL.read_data (exception case)] [Socket.BufferManager]
202[V] 2014-05-02T11:49:58.6931273Z: <- processor [Web.request_loop.loop]
203[V] 2014-05-02T11:49:58.6931273Z: 'result = None', exiting [Web.request_loop.loop]
204[V] 2014-05-02T11:49:58.6931273Z: freeing buffer: 811008, free count: 99 [Tcp.tcp_ip_server.job] [Socket.BufferManager]
205[V] 2014-05-02T11:49:58.6931273Z: 127.0.0.1 disconnected, total: 0 clients [Tcp.tcp_ip_server.job]
206#7|1380032
207[V] 2014-05-02T11:49:58.7087541Z: 127.0.0.1 connected, total: 1 clients [Tcp.tcp_ip_server.job]
208[V] 2014-05-02T11:49:58.7087541Z: reserving buffer: 811008, free count: 98 [Tcp.tcp_ip_server.job] [Socket.BufferManager]
209[V] 2014-05-02T11:49:58.7087541Z: -> processor [Web.request_loop.loop]
210[V] 2014-05-02T11:49:58.7087541Z: reserving buffer: 794624, free count: 97 [read_till_EOL.read_data] [Socket.BufferManager]
211[V] 2014-05-02T11:49:58.7243853Z: freeing buffer: 794624, free count: 98 [read_till_EOL.scan_data (Some x = pair.offset (if1))] [Socket.BufferManager]
212[V] 2014-05-02T11:49:58.7243853Z: reserving buffer: 794624, free count: 97 [read_post_data] [Socket.BufferManager]
213[V] 2014-05-02T11:49:58.7243853Z: freeing buffer: 794624, free count: 98 [read_post_data] [Socket.BufferManager]
214[V] 2014-05-02T11:49:58.7399625Z: <- processor [Web.request_loop.loop]
215[V] 2014-05-02T11:49:58.7399625Z: 'Connection: keep-alive' recurse (!) [Web.request_loop.loop]
216[V] 2014-05-02T11:49:58.7399625Z: -> processor [Web.request_loop.loop]
217[V] 2014-05-02T11:49:58.7399625Z: reserving buffer: 794624, free count: 97 [read_till_EOL.read_data] [Socket.BufferManager]
218[V] 2014-05-02T11:49:58.7399625Z: freeing buffer: 794624, free count: 98 [read_till_EOL.read_data (exception case)] [Socket.BufferManager]
219[V] 2014-05-02T11:49:58.7399625Z: <- processor [Web.request_loop.loop]
220[V] 2014-05-02T11:49:58.7399625Z: 'result = None', exiting [Web.request_loop.loop]
221.[V] 2014-05-02T11:49:58.7555344Z: freeing buffer: 811008, free count: 99 [Tcp.tcp_ip_server.job] [Socket.BufferManager]
222[V] 2014-05-02T11:49:58.7555344Z: 127.0.0.1 disconnected, total: 0 clients [Tcp.tcp_ip_server.job]
223#8|11462032
224[V] 2014-05-02T11:49:58.8803366Z: 127.0.0.1 connected, total: 1 clients [Tcp.tcp_ip_server.job]
225[V] 2014-05-02T11:49:58.8803366Z: reserving buffer: 811008, free count: 98 [Tcp.tcp_ip_server.job] [Socket.BufferManager]
226[V] 2014-05-02T11:49:58.8803366Z: -> processor [Web.request_loop.loop]
227[V] 2014-05-02T11:49:58.8803366Z: reserving buffer: 794624, free count: 97 [read_till_EOL.read_data] [Socket.BufferManager]
228[V] 2014-05-02T11:49:58.8803366Z: freeing buffer: 794624, free count: 98 [read_till_EOL.scan_data (Some x = pair.offset (if1))] [Socket.BufferManager]
229[V] 2014-05-02T11:49:58.8803366Z: reserving buffer: 794624, free count: 97 [read_post_data] [Socket.BufferManager]
230[V] 2014-05-02T11:49:58.9739188Z: freeing buffer: 794624, free count: 98 [read_post_data] [Socket.BufferManager]
231[V] 2014-05-02T11:49:58.9739188Z: <- processor [Web.request_loop.loop]
232[V] 2014-05-02T11:49:59.1143380Z: 'Connection: keep-alive' recurse (!) [Web.request_loop.loop]
233[V] 2014-05-02T11:49:59.1143380Z: -> processor [Web.request_loop.loop]
234[V] 2014-05-02T11:49:59.1143380Z: reserving buffer: 794624, free count: 97 [read_till_EOL.read_data] [Socket.BufferManager]
235.[V] 2014-05-02T11:49:59.1143380Z: freeing buffer: 794624, free count: 98 [read_till_EOL.read_data (exception case)] [Socket.BufferManager]
236[V] 2014-05-02T11:49:59.1143380Z: <- processor [Web.request_loop.loop]
237[V] 2014-05-02T11:49:59.1143380Z: 'result = None', exiting [Web.request_loop.loop]
238[V] 2014-05-02T11:49:59.1143380Z: freeing buffer: 811008, free count: 99 [Tcp.tcp_ip_server.job] [Socket.BufferManager]
239[V] 2014-05-02T11:49:59.1143380Z: 127.0.0.1 disconnected, total: 0 clients [Tcp.tcp_ip_server.job]
240#9|935212
241[V] 2014-05-02T11:49:59.1299411Z: 127.0.0.1 connected, total: 1 clients [Tcp.tcp_ip_server.job]
242[V] 2014-05-02T11:49:59.1299411Z: reserving buffer: 811008, free count: 98 [Tcp.tcp_ip_server.job] [Socket.BufferManager]
243[V] 2014-05-02T11:49:59.1299411Z: -> processor [Web.request_loop.loop]
244[V] 2014-05-02T11:49:59.1299411Z: reserving buffer: 794624, free count: 97 [read_till_EOL.read_data] [Socket.BufferManager]
245[V] 2014-05-02T11:49:59.1299411Z: freeing buffer: 794624, free count: 98 [read_till_EOL.scan_data (Some x = pair.offset (if2))] [Socket.BufferManager]
246[V] 2014-05-02T11:49:59.1299411Z: reserving buffer: 794624, free count: 97 [read_post_data] [Socket.BufferManager]
247[V] 2014-05-02T11:49:59.1299411Z: <- processor [Web.request_loop.loop]
248[V] 2014-05-02T11:49:59.1299411Z: 'result = None', exiting [Web.request_loop.loop]
249[V] 2014-05-02T11:49:59.1299411Z: freeing buffer: 811008, free count: 98 [Tcp.tcp_ip_server.job] [Socket.BufferManager]
250[V] 2014-05-02T11:49:59.1299411Z: 127.0.0.1 disconnected, total: 0 clients [Tcp.tcp_ip_server.job]
251System.AggregateException: One or more errors occurred. ---> System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a receive. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
252   at System.Net.Sockets.Socket.EndReceive(IAsyncResult asyncResult)
253   at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult)
254   --- End of inner exception stack trace ---
255   at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult)
256   at System.Net.PooledStream.EndRead(IAsyncResult asyncResult)
257   at System.Net.Connection.ReadCallback(IAsyncResult asyncResult)
258   --- End of inner exception stack trace ---
259   at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
260   at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)
261   --- End of inner exception stack trace ---
262   --- End of inner exception stack trace ---
263   at Microsoft.FSharp.Control.AsyncBuilderImpl.commit[a](Result`1 res)
264   at Microsoft.FSharp.Control.CancellationTokenOps.RunSynchronously[a](CancellationToken token, FSharpAsync`1 computation, FSharpOption`1 timeout)
265   at Microsoft.FSharp.Control.FSharpAsync.RunSynchronously[T](FSharpAsync`1 computation, FSharpOption`1 timeout, FSharpOption`1 cancellationToken)
266   at FSI_0002.Client.with_client[a](FSharpFunc`2 f) in W:\_vendor\suave\Tests\Bug105-StopsResponding.fsx:line 67
267   at FSI_0002.Client.post(Byte[] data) in W:\_vendor\suave\Tests\Bug105-StopsResponding.fsx:line 73
268   at FSI_0002.Client.post_and_assert@79.Invoke(Byte[] x) in W:\_vendor\suave\Tests\Bug105-StopsResponding.fsx:line 79
269   at FSI_0002.Client.run(FSharpOption`1 rnd) in W:\_vendor\suave\Tests\Bug105-StopsResponding.fsx:line 96
270---> (Inner Exception #0) System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a receive. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
271   at System.Net.Sockets.Socket.EndReceive(IAsyncResult asyncResult)
272   at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult)
273   --- End of inner exception stack trace ---
274   at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult)
275   at System.Net.PooledStream.EndRead(IAsyncResult asyncResult)
276   at System.Net.Connection.ReadCallback(IAsyncResult asyncResult)
277   --- End of inner exception stack trace ---
278   at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
279   at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)
280   --- End of inner exception stack trace ---<---
281
282#10|12725572
283[V] 2014-05-02T11:50:00.2998771Z: 127.0.0.1 connected, total: 1 clients [Tcp.tcp_ip_server.job]
284[V] 2014-05-02T11:50:00.2998771Z: reserving buffer: 811008, free count: 97 [Tcp.tcp_ip_server.job] [Socket.BufferManager]
285[V] 2014-05-02T11:50:00.2998771Z: -> processor [Web.request_loop.loop]
286[V] 2014-05-02T11:50:00.2998771Z: reserving buffer: 786432, free count: 96 [read_till_EOL.read_data] [Socket.BufferManager]
287[V] 2014-05-02T11:50:00.2998771Z: freeing buffer: 786432, free count: 97 [read_till_EOL.scan_data (Some x = pair.offset (if1))] [Socket.BufferManager]
288[V] 2014-05-02T11:50:00.2998771Z: reserving buffer: 786432, free count: 96 [read_post_data] [Socket.BufferManager]
289[V] 2014-05-02T11:50:00.7522686Z: freeing buffer: 786432, free count: 97 [read_post_data] [Socket.BufferManager]
290[V] 2014-05-02T11:50:00.7522686Z: <- processor [Web.request_loop.loop]
291[V] 2014-05-02T11:50:00.8302525Z: 'Connection: keep-alive' recurse, rem: <null> [Web.request_loop.loop]
292[V] 2014-05-02T11:50:00.8302525Z: -> processor [Web.request_loop.loop]
293[V] 2014-05-02T11:50:00.8302525Z: reserving buffer: 786432, free count: 96 [read_till_EOL.read_data] [Socket.BufferManager]
294.[V] 2014-05-02T11:50:00.8302525Z: freeing buffer: 786432, free count: 97 [read_till_EOL.read_data (exception case)] [Socket.BufferManager]
295[V] 2014-05-02T11:50:00.8302525Z: <- processor [Web.request_loop.loop]
296[V] 2014-05-02T11:50:00.8302525Z: 'result = None', exiting [Web.request_loop.loop]
297[V] 2014-05-02T11:50:00.8302525Z: freeing buffer: 811008, free count: 98 [Tcp.tcp_ip_server.job] [Socket.BufferManager]
298[V] 2014-05-02T11:50:00.8302525Z: 127.0.0.1 disconnected, total: 0 clients [Tcp.tcp_ip_server.job]
299#11|285452
300[V] 2014-05-02T11:50:00.8458463Z: 127.0.0.1 connected, total: 1 clients [Tcp.tcp_ip_server.job]
301[V] 2014-05-02T11:50:00.8458463Z: reserving buffer: 811008, free count: 97 [Tcp.tcp_ip_server.job] [Socket.BufferManager]
302[V] 2014-05-02T11:50:00.8458463Z: -> processor [Web.request_loop.loop]
303[V] 2014-05-02T11:50:00.8458463Z: reserving buffer: 786432, free count: 96 [read_till_EOL.read_data] [Socket.BufferManager]
304[V] 2014-05-02T11:50:00.8458463Z: freeing buffer: 786432, free count: 97 [read_till_EOL.scan_data (Some x = pair.offset (if2))] [Socket.BufferManager]
305[V] 2014-05-02T11:50:00.8458463Z: reserving buffer: 786432, free count: 96 [read_post_data] [Socket.BufferManager]
306[V] 2014-05-02T11:50:00.8458463Z: <- processor [Web.request_loop.loop]
307[V] 2014-05-02T11:50:00.8458463Z: 'result = None', exiting [Web.request_loop.loop]
308[V] 2014-05-02T11:50:00.8458463Z: freeing buffer: 811008, free count: 97 [Tcp.tcp_ip_server.job] [Socket.BufferManager]
309[V] 2014-05-02T11:50:00.8458463Z: 127.0.0.1 disconnected, total: 0 clients [Tcp.tcp_ip_server.job]
310System.AggregateException: One or more errors occurred. ---> System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a receive. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
311   at System.Net.Sockets.Socket.EndReceive(IAsyncResult asyncResult)
312   at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult)
313   --- End of inner exception stack trace ---
314   at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult)
315   at System.Net.PooledStream.EndRead(IAsyncResult asyncResult)
316   at System.Net.Connection.ReadCallback(IAsyncResult asyncResult)
317   --- End of inner exception stack trace ---
318   at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
319   at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)
320   --- End of inner exception stack trace ---
321   --- End of inner exception stack trace ---
322   at Microsoft.FSharp.Control.AsyncBuilderImpl.commit[a](Result`1 res)
323   at Microsoft.FSharp.Control.CancellationTokenOps.RunSynchronously[a](CancellationToken token, FSharpAsync`1 computation, FSharpOption`1 timeout)
324   at Microsoft.FSharp.Control.FSharpAsync.RunSynchronously[T](FSharpAsync`1 computation, FSharpOption`1 timeout, FSharpOption`1 cancellationToken)
325   at FSI_0002.Client.with_client[a](FSharpFunc`2 f) in W:\_vendor\suave\Tests\Bug105-StopsResponding.fsx:line 67
326   at FSI_0002.Client.post(Byte[] data) in W:\_vendor\suave\Tests\Bug105-StopsResponding.fsx:line 73
327   at FSI_0002.Client.post_and_assert@79.Invoke(Byte[] x) in W:\_vendor\suave\Tests\Bug105-StopsResponding.fsx:line 79
328   at FSI_0002.Client.run(FSharpOption`1 rnd) in W:\_vendor\suave\Tests\Bug105-StopsResponding.fsx:line 96
329---> (Inner Exception #0) System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a receive. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
330   at System.Net.Sockets.Socket.EndReceive(IAsyncResult asyncResult)
331   at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult)
332   --- End of inner exception stack trace ---
333   at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult)
334   at System.Net.PooledStream.EndRead(IAsyncResult asyncResult)
335   at System.Net.Connection.ReadCallback(IAsyncResult asyncResult)
336   --- End of inner exception stack trace ---
337   at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
338   at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)
339   --- End of inner exception stack trace ---<---
340
341#12|5768392
342[V] 2014-05-02T11:50:00.9083217Z: 127.0.0.1 connected, total: 1 clients [Tcp.tcp_ip_server.job]
343[V] 2014-05-02T11:50:00.9083217Z: reserving buffer: 811008, free count: 96 [Tcp.tcp_ip_server.job] [Socket.BufferManager]
344[V] 2014-05-02T11:50:00.9083217Z: -> processor [Web.request_loop.loop]
345[V] 2014-05-02T11:50:00.9083217Z: reserving buffer: 778240, free count: 95 [read_till_EOL.read_data] [Socket.BufferManager]
346[V] 2014-05-02T11:50:00.9083217Z: freeing buffer: 778240, free count: 96 [read_till_EOL.scan_data (Some x = pair.offset (if1))] [Socket.BufferManager]
347[V] 2014-05-02T11:50:00.9083217Z: reserving buffer: 778240, free count: 95 [read_post_data] [Socket.BufferManager]
348[V] 2014-05-02T11:50:00.9394409Z: freeing buffer: 778240, free count: 96 [read_post_data] [Socket.BufferManager]
349[V] 2014-05-02T11:50:00.9394409Z: <- processor [Web.request_loop.loop]
350[V] 2014-05-02T11:50:01.0174427Z: 'Connection: keep-alive' recurse (!) [Web.request_loop.loop]
351[V] 2014-05-02T11:50:01.0174427Z: -> processor [Web.request_loop.loop]
352[V] 2014-05-02T11:50:01.0174427Z: reserving buffer: 778240, free count: 95 [read_till_EOL.read_data] [Socket.BufferManager]
353.[V] 2014-05-02T11:50:01.0174427Z: freeing buffer: 778240, free count: 96 [read_till_EOL.read_data (exception case)] [Socket.BufferManager]
354[V] 2014-05-02T11:50:01.0174427Z: <- processor [Web.request_loop.loop]
355[V] 2014-05-02T11:50:01.0174427Z: 'result = None', exiting [Web.request_loop.loop]
356[V] 2014-05-02T11:50:01.0330436Z: freeing buffer: 811008, free count: 97 [Tcp.tcp_ip_server.job] [Socket.BufferManager]
357[V] 2014-05-02T11:50:01.0330436Z: 127.0.0.1 disconnected, total: 0 clients [Tcp.tcp_ip_server.job]
358#13|10481392
359
360- Interrupt
361>