Commit graph

88 commits

Author SHA1 Message Date
Araq
e6d17e6273 made large parts of the stdlib gcsafe 2014-04-20 20:01:24 +02:00
Dominik Picheta
4d2f1396cb Revent pruneSocketSet to efficient version. 2014-04-05 23:30:16 +01:00
Dominik Picheta
51c203bab0 Modified behaviour of checkBuffer to match new select behaviour. Refs #822. 2014-04-05 23:10:51 +01:00
Araq
435610e0af merged #823 against devel 2014-02-02 01:38:19 +01:00
Araq
de538deb7a should compile on netbsd 2014-01-23 20:43:56 +01:00
Erik O'Leary
5d8d1ed8bc Corrected prunesocketset and pruneprocessset
fd sets passed to select() were pruning ready FDs rather than pruning
UN-ready FDs.
2014-01-19 10:51:21 -06:00
Araq
73c6efdf66 'nil' as a statement is deprecated, use an empty 'discard' instead 2014-01-19 16:54:59 +01:00
Araq
286f166304 case consistency for linux 2013-12-29 03:32:46 +01:00
Araq
b731e6ef1c case consistency: cs:partial bootstraps on windows 2013-12-29 03:19:10 +01:00
Araq
438703f59e case consistency: next steps 2013-12-29 01:13:51 +01:00
Araq
92b8fac94a case consistency part 4 2013-12-27 23:10:36 +01:00
Araq
2df9b442c6 case consistency part 1 2013-12-27 15:48:53 +01:00
Araq
84e4710320 bugfix: InvalidSockets needs to be a let variable 2013-12-24 01:39:33 +01:00
Araq
feb9af48f1 NoFakeVars progress 2013-12-24 00:21:22 +01:00
Araq
619356dd08 bugfix: '$' for TPort 2013-11-19 14:06:39 +01:00
Dominik Picheta
78123520a9 Implemented boolean socket options.
Added reuseAddr for httpserver and scgi.
2013-10-30 16:40:03 +00:00
Dominik Picheta
0663c883e5 TPort is now uint16 and other small sockets fixes. 2013-10-30 14:35:30 +00:00
Dominik Picheta
f695bb0b6f Fixed socket compilation problems on Windows. 2013-10-23 18:30:03 +01:00
Dominik Picheta
8231deffd0 Made TSocketHandle distinct and fixed problems it caused for SSL. 2013-10-23 18:07:00 +01:00
Clay Sweetser
229d83f6c6 Added a TSocketHandle type to winlean.nim and posix.nim
Edited sockets.nim and asyncio.nim to use the new TSocketHandle type.
2013-10-15 13:53:44 -04:00
Araq
67e9f2861e some fixes for win64 2013-10-10 00:39:10 +02:00
Araq
1a792d46d0 first version of the debug GC; doesn't work yet 2013-10-01 08:44:09 +02:00
Dominik Picheta
8ac7bda244 sockets.send now throws an exception when a non-blocking socket is
passed to it.
2013-08-04 19:13:29 +01:00
Dominik Picheta
325c167e2a Fixes OSError deprecation warning. 2013-07-21 11:08:28 +01:00
Dominik Picheta
bacb20a379 Deprecated OSError, and modified it to require an explicit OS error code.
The deprecated functions include the OSError and OSErrorMsg, the name did not change however the signature of the new functions did. They now require a TOSErrorCode value be passed to them. This value can be retrieved using OSLastError. The reason this was done is because on Windows any win api call can reset the last error code to 0, this change allows the user to immediately grab the error code and worry about the string representation later if needs be.
2013-06-25 20:10:28 +01:00
Dominik Picheta
3001ed54f9 Fixed overflow in sockets.parseIP4. 2013-05-24 19:43:37 +01:00
Dominik Picheta
0b2512e1e4 Improved the performance of the SCGI module when dealing with multiple
concurrent requests.
2013-05-19 18:33:47 +01:00
Araq
ce5a1365c2 preparations for the new symbol binding rules for clean templates 2013-05-18 10:05:06 +02:00
Dominik Picheta
5267984985 Deprecated recvLine and added an improved version named readLine to the
sockets module.
2013-03-23 20:13:11 +00:00
Grzegorz Adam Hankiewicz
72a3e21f28 Removes executable bit for text files. 2013-03-16 23:53:07 +01:00
Dominik Picheta
f2041afad5 Fixed timeouts for sockets, implemented timeouts in httpclient and fixed
a bug with redirection in httpclient.
2013-02-23 23:12:11 +00:00
Araq
5a9637f2f3 make some tests green 2013-01-08 22:51:23 +01:00
Dominik Picheta
f83881dd4e Fixed symbol conflict in the sockets module on Windows. 2012-12-23 14:31:16 +00:00
Dominik Picheta
da609fc445 Fixed many deprecation warnings. asyncio.recvLine now throws an
exception when an error occurs. Added sockets.SocketError.
2012-12-23 14:05:16 +00:00
Dominik Picheta
3cbac13546 Rewrote the implementation of parsing chunked transfer coding in
httpclient. Fixes #272.
2012-12-23 11:22:42 +00:00
Dominik Picheta
6cb8edfce9 recvLine now works with unbuffered ssl sockets.
Added higher level recv functions.
2012-12-22 23:03:28 +00:00
Dominik Picheta
63112696b0 Fixes SSL implementation of sendAsync. 2012-12-08 19:27:00 +00:00
Dominik Picheta
d6632ad973 Fixes #268 2012-12-08 19:04:45 +00:00
Araq
0834224070 disable SSLv2_method for ubuntu 2012-12-03 21:48:12 +01:00
Araq
8948a97151 bugfix: 'not nil' and 'shared' types 2012-12-02 20:02:42 +01:00
Araq
476f6fc8ee sockets: proper bugfix for solaris 2012-11-22 08:08:54 +01:00
Araq
1dfc57c5ff bugfix: sockets with SSL support 2012-11-20 22:04:45 +01:00
Araq
67d9933eb3 sockets.nim: bugfix for solaris 2012-11-20 21:40:22 +01:00
Araq
ec9b1f78e1 annotated effects of modules: os, sockets, times 2012-11-18 13:34:48 +01:00
Dominik Picheta
76c4b0516a Many doc improvements. Changed Threads.joinThreads' param's type to varargs. 2012-11-04 22:30:19 +00:00
Araq
42d0911d6a nimbuild should work again 2012-11-01 01:11:48 +01:00
Araq
2133fbfcce bugfix: wrong assertions for C++ code generation; some solaris support; first steps to an effect system 2012-10-30 22:29:03 +01:00
Zahary Karadjov
d9d82fb0af syntax compatibility between do blocks and stmt blocks
See the section `do notation` in the manual for more info.

* nkMacroStmt has been removed
   Macro statements are now mapped to regular nkCall nodes.
   The support for additional clauses (such as else, except, of, etc)
   have been restored - they will now appear as additional arguments
   for the nkCall node (as nkElse, nkExcept, etc nodes)

* fixed some regressions in the `is` operator and semCompiles
2012-10-04 15:37:26 +03:00
Dominik Picheta
d00cb877fd Fixes sockets.recvFrom not setting length of data. 2012-09-23 01:31:49 +01:00
Dominik Picheta
6c6f9e6674 Ftpclient now fully works both synchronously and asynchronously.
Fixed some deprecation doc messages. And some issues with asyncio.
2012-09-22 16:39:51 +01:00