Delphi-Cross-Socket
Delphi-Cross-Socket copied to clipboard
Delphi cross platform socket library
作为客户端与mosquitto通讯,在非SSL下正常,切换为SSL模式,就报错了,如下图所示: 1579229083: New connection from 127.0.0.1 on port 8082. 1579229083: OpenSSL Error: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number 1579229083: Socket error on client , disconnecting.
it would be nice to have jwt implemented
Please make a port to FPC/lazarus.
好像是粘包问题, 如果有大量小包一起发送过来就会有问题! TCrossWebSocketConnection._WebSocketRecv在这个方法里! 有人给了我一份修改过的代码,作者可以参考一下! 白天没时间提交,晚上提交,作者辛苦看一下谢谢! [Net.CrossWebSocketServer.zip](https://github.com/winddriver/Delphi-Cross-Socket/files/3077731/Net.CrossWebSocketServer.zip)
这套框架非常优秀,感谢作者辛勤付出~! 这里提个小意见:目前情况下,数据接收是由框架内部自动发起的,数据到达后触发OnReceived事件交给应用程序,这样一来,应用程序没办法根据需要进行细粒度的控制(只能照单全收)。希望框架能提供一种由程序"手动接收“的模式,按需要发起接收请求,这样可以充分利用TCP自带的的流控机制。 手动接收的使用场景:比如写一个反向代理服务器,服务端接入客户端连接后,收取少量的数据,然后发起Connect到后端服务器,转发客户端的数据,但Connect是异步的,无法确定要多久,在此期间客户端可能会持续发送而造成服务端需要缓存大量数据,这时候就希望能够 ”暂停接收“ 客户端数据,等到Connect成功后再 ”继续接收“。 上述场景下,如果有”手动接收“机制,能够完美解决。
hello Souledge, I propose a little modify to raise the throughput of HTTP GET files, using NT TransmitFile() async over IOCOMP. https://docs.microsoft.com/it-it/windows/desktop/api/mswsock/nf-mswsock-transmitfile **TF_USE_KERNEL_APC** and **TF_WRITE_BEHIND** will make sendfile completely asynchronous...
Hi, I am exploring your library as it really seems to be faster than other solutions as an http backend base. First of all, congratulations! I tried to run CrossHttpConsole...
I'm following a thread in delphi group, I like forward a hint from a very talented Delphi senior: The only ding I have against websockets is the stupid rfc requirement...
breaking the barrier of 100k ops/sec on my I7 https://en.delphipraxis.net/topic/711-rtl-patch-to-speedup-350-server-app-tested-on-i7-quad-core/?tab=comments#comment-5668 please tell me if you found errors or troubles in your apps
if you have time should try to adopt some enhancements to the socket base, investigate to use zerocopy SNDBUF network stack together with vectorized I/O (scatter gather) search for info...