Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/redis/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Windows Redis从Redis服务器读取大文件_Windows_Redis_<img Src="//i.stack.imgur.com/WM7S8.png" Height="16" Width="18" Alt="" Class="sponsor Tag Img">servicestack_Windows Server 2003_Socketexception - Fatal编程技术网 servicestack,windows-server-2003,socketexception,Windows,Redis,servicestack,Windows Server 2003,Socketexception" /> servicestack,windows-server-2003,socketexception,Windows,Redis,servicestack,Windows Server 2003,Socketexception" />

Windows Redis从Redis服务器读取大文件

Windows Redis从Redis服务器读取大文件,windows,redis,servicestack,windows-server-2003,socketexception,Windows,Redis,servicestack,Windows Server 2003,Socketexception,我在测试ServiceStack Redis客户端时,发现一个与Windows Server 2003 R2中的包大小相关的错误 对于小于30MB的文件可以正常工作,但对于大于32-33MB的文件,它开始发送错误。这只发生在WindowsServer2003R2上,我在Windows7和Windows2008R2上测试成功 守则: String text=File.ReadAllText(“File.xml”); 字符串键=Guid.NewGuid().ToString(); if(redisC

我在测试ServiceStack Redis客户端时,发现一个与Windows Server 2003 R2中的包大小相关的错误

对于小于30MB的文件可以正常工作,但对于大于32-33MB的文件,它开始发送错误。这只发生在WindowsServer2003R2上,我在Windows7和Windows2008R2上测试成功

守则:

String text=File.ReadAllText(“File.xml”);
字符串键=Guid.NewGuid().ToString();
if(redisClient.Add(key、text、DateTime.Now.AddSeconds(300)))
String Result=redisClient.Get(key)作为字符串;
错误:

System.Net.Sockets.SocketException (0x80004005): An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
有人知道这是因为操作系统的限制还是因为ServiceStack client for Redis的问题吗


提前谢谢。

我也遇到了这个问题。虽然我确实在网上看到了与更改TCP窗口大小等相关的解决方案,但我只是简单地将所有内容打包。这不会在所有情况下都起作用(特别是当内容已经被压缩时!),但如果压缩是一种选择,我会尝试这样做。

我也遇到了这个问题。虽然我确实在网上看到了与更改TCP窗口大小等相关的解决方案,但我只是简单地将所有内容打包。这不会在所有情况下都起作用(特别是当内容已经压缩时!),但如果压缩是一种选择,我会尝试