Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 1397 lines (965 sloc) 50.291 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396
$Id$

Revision history for POE
========================

Changes marked with "(!!!)" may break backward compatibility.
Versions with "_xx" subversions are internal test releases. Most
subversions are available from <http://www.newts.org/~troc/poe.html>.

[ Hey, Rocco, don't forget to assign a tag to the release after you
  make dist on it! 0.0910 is ``v0_0910''! For example:

  cvs tag -Rc v0_11 .
  cvs tag -Rc v0_1005 .
]

,----- To Do -----
|
| Before 0.11
|
| Test $kernel->fork() or replace it entirely.
|
| Test SocketFactory with UDP sockets.
|
| After 0.11
|
| Split the samples out into a separate distribution.
| Revise the POE web pages.
|
`-----------------


0.1007 2000.06.07
-----------------

Version 0.1006 was put on the web site, but ignatz found a bug in
SocketFactory that prevented t/09_wheels_unix.t from passing on
Linux machines. a-mused confirmed that the problem appears on Linux
but not Solaris. My own FreeBSD system was not affected. The bug
relates to calling getpeername on UNIX domain sockets. The resulting
unpack_sockaddr_un call would fail when getpeername returned an
undefined (not undef) value. The failing code is now wrapped in
eval, and it will gracefully recover from this sort of error.

Many thanks to ignatz and a-mused for quick testing, and to Fletch
for verifying that 0.1007 works on RedHat 6.2 x86!


0.1006 2000.06.07 (!!!)
-----------------------

This version was placed on the web site, but a-mused and ignatz found
bugs SocketFactory right away. As a result, I held off announcing it
to the mailing list until a fix could be included.

Added t/12_signals_ev.t to test Event's SIGCHLD handler. It's pretty
much the same as t/11_signals_poe.t, but using Event or skipping itself
if Event is not available.

Increased the time that t/11_signals_poe.t waits to reap children. On
memory- and cpu-challenged systems, swap times could delay process
exits, causing false failures when the test program timed out.

Fimmtiu discovered why it's bad to post _start yourself, and I decided
it would be best for everyone to document it.

Philip Gwyn patched POE::Kernel to unwind SIGCHLD reaping loops. This
greatly reduces the amount of work done in POE's stock $SIG{CHLD}
handlers which in turn reduces the probability that SIGCHLD will
segfault Perl. Note, however, that the chance of this occurring will
remain nonzero as long as Perl is not signal safe. (Also, the patch
wouldn't apply and I sort of redid the code as I spliced it into the
the Kernel. I'll know when Philip tests it whether I've broken his
algorithm.)

Tweaked postbacks. Older Perl versions were not doing the right
things with \@_ in POE::Session's postback() method. Replaced it
with [ @_ ] instead.

Expanded t/02_alarms.t to test the big-queue binary search and insert
code. Previous tests didn't expand the alarm queue past the maximum
threshhold for linear insertion.

Macro-ized some of the redundant bits between the Tk and Event code.

Normalized the names of some functions; added leading underscores here
and there.

Added test coverage information to the README.

Added t/09_wheels_unix.t to test Wheel::ReadWrite and
Wheel::SocketFactory against UNIX domain sockets. This will fail
terribly wherever UNIX sockets aren't supported; I should skip it on
platforms where people complain about its failure.

Added t/10_wheels_tcp.t to test Wheel::ReadWrite and
Wheel::SocketFactory against INET/TCP sockets.

Added t/11_signals_poe.t to test POE's stock signal handlers. These
are Perl's own signal handlers, and all the caveats apply.

Added Exporter; TestSetup exports its functions now. TestSetup use
syntax changed, so I added &test_setup to set things up instead of
&import.

Added &ok, &not_ok and &results to buffer and report on the results of
tests that occur in indeterminate orders.

Added TestSetup functions stderr_pause() and stderr_resume() to turn
STDERR off and back on when testing code known to show diagsonstics.

Added ID resolution tests to t/03_aliases.t.

Added the kernel's ID to its ID-to-session lookup table, so that
$kernel->ID_id_to_session($kernel->ID) would return $kernel. It's
silly but complete now.

Added t/08_errors.t to test error conditions, something that the other
tests never covered.

Added lib/Devel/Trace.pm. This is a custom debugging module (used
with -d:Trace) that collects information about runnable Perl
statements and the ones actually called. It's only used for reporting
on test coverage during development and isn't installed.

Added lib/coverage.perl. This program runs t/*.t with -d:Trace to
collect coverage statistics; then it gathers up the results and writes
a report.

Added t/00_coverage.t to load every "released" module so that the test
coverage report can learn the set of all testable modules.

Philip Gwyn pointed out that waitpid() returns 0 on some platforms to
indicate outstanding child processes that haven't yet exited. I was
treating 0 as a valid PID. The waitpid() return value checks are
fixed now.

Fletch found all sorts of badness in POE::Kernel's fork() method and
related polling loop. It boiled down to bad assumptions about
$SIG{CHLD} = 'IGNORE' and a stupid use of keys() without scalar().

(!!!) Revised the Changes for 0.0906, dated 2000.02.20 to note an
interface change in Wheel::ReadWrite's put() method. This Changes
change isn't a compatibility issue, but the original change is.

POE::Preprocessor adds "# line" directives so that macro expansions
don't break line numbers in warnings and errors. Unfortunately, this
badly breaks -d modules, such as the debugger and various profilers.
So now POE::Preprocessor omits "# line" directives when -d is used.
This'll let you see everything being run, at the expense of correct
line numbers.

Added a rudimentary signals test to t/01_sessions.t, which uses POE's
own event loop.

Added a rudimentary signals test to t/07_event.t, which uses Event's
event loop.

Will not add a signals test to t/06_tk.t. Tk does not have its own
signal watchers, so this would only test POE's.

Made minor revisions to the tiny and relatively new POE::Preprocessor
documentation.


0.1005 2000.05.23
-----------------

I forgot to document POE::Session's constructors. Oops! Now thery
are documented.

Rewrote the POE::Wheel POD.

Found the Perl symbols that weren't being exported for OS/2 and AIX
(and maybe Windows). Fixed makedef.pl to export them, and now Event
builds and tests ok. Sweet! Added initial Event support to
POE::Kernel and removed the Event caveats throughout POE's
documentation.

Added t/06_tk.t to test Tk support. This tests file, idle and after
events. It does nothing with signals, which Tk doesn't handle, and
nothing heavy duty. Tk support is functional but still experimental.

a-mused pointed out that samples/tk.perl wasn't stopping its alarm
counters when it ought to. This turned out to be a problem with
POE::Kernel's delay() method not clearing timed events. Fixed!

Turned the idle kernel check into a macro, and used it not only from
POE::Kernel's run() method but also from the Tk and Event callbacks.
Before this, IDLE would never be posted when using Tk or Event.

Enhanced TestSetup (used privately by the t/*.t tests) to skip entire
test files when given 0 for the number of tests.

The Tk version of POE::Kernel's run() method would never exit, even
when there were no more sessions. This has been fixed, after much
guts wrangling.

Added t/07_event.t to test Event support. While this is a proper test
of Event's timer, io and idle events, it doesn't cover signals or any
heavy duty tasks. Thus the Event support is functional but still
experimental.


0.1004 2000.05.21
-----------------

Rewrote the POE, POE::Kernel and POE::Session PODs. Documented Tk
support. Documented Event support, but it's not in yet.

t/04_select.t assumed that two-argument syswrite was legal, but it
isn't back in 5.005_02. Added a length() call to make it legal on
older perls. Thanks again, a-mused!

alarm_add() would enqueue an alarm for an undefined state. Fixed it
to ignore such requests.

The call() method did not reliably set $! to zero on success. Now it
does.

(!!!) Added parameter checking and return values to the timed event
functions: alarm, alarm_add, delay, and delay_add.

(!!!) alarm() and alarm_add() no longer clip past times to time(2).
Instead, events posted for the past will be entered into the
appropriate places in POE's time-ordered alarm/delay queue. The
obvious results will occur.

(!!!) Changed POE::Kernel::alias_* to return 0 on success or an error
code on failure. They no longer touch $!.

(!!!) Changed POE::Kernel::state to return 0 on success or an error
code on failure. It no longer touches $!.

(!!!) Changed POE::Kernel::refcount_(in|de)crement to return the new
reference count on success or undef on failure.


0.1003 2000.05.12
-----------------

Addi found a list of Win32 error codes, including the elusive
EINPROGRESS. I changed the dummy value to the correct one in
POE::Kernel and POE::Wheel::SocketFactory. Now SocketFactory works on
Win32, in perl 5.005_03. Mileage may vary as MSWin32 perl evolves.

I finally found a system where Perl/Tk builds. This isn't a comment
on Perl/Tk (which is huge to build; 77 megs!) as much as it is on
the state of its OS/2 port. The samples/tk.perl example program is
working!

Documentation is still lagging behind development at the moment, but
I should have more time to focus on it now that the Tk support is in
open beta on the 'web site.

Since 0.100201 was a private beta for Win32 support testing, and maybe
two people at most have seen it, you should give its section of the
Changes a look.


0.100201 2000.05.10
-------------------

This is a private release, 0.10_02_01, for Addi. He's been having
trouble with POE and POE::Component::IRC on Win32.

Found a bug in Wheel::ReadWrite that prevented separate InputHandle
and OutputHandle from working correctly.

Finished initial Tk support. Posted/yielded events, alarms/delays,
and selects are now handled through the Tk event loop, if Tk is used
before POE.

Philip Gwyn has noticed POE leaving zombie processes behind. This was
traced back to naive signal handlers for $SIG{CH?LD} and the
$kernel->fork() "safe" polling code. Both handlers have been changed
to use waitpid() and loop until all children have been reaped.

Deleted $POE::Kernel::{signal} before defining &POE::Kernel::signal.
As of 5.6.0, perl warns of a redefined function, even though it's
supposed to be called as a POE::Kernel method. Grrr.

Addi pointed out that the PREREQ_PM line for Filter was incorrect. It
should be requiring Filter::Util::Call 1.04. Fixed!

Addi also noted that the Perl debugger sets $SIG{BUS} under MSWin32.
MSWin32 doesn't support a $SIG{BUS}, so POE dies when it grovels
%SIG's keys to register handlers. Bleah! POE::Kernel now avoids
$SIG{BUS} on MSWin32 systems.

Fixed a bug that Addi found in Wheel::SocketFactory. SocketFactory
needed code to manage temporary states. These states are created from
coderefs which are passed to the SocketFactory constructor instead of
state names. Anyway, to do this, SocketFactory instances needed to
register and remove success and failure states from sessions that own
them. Unfortunately, they deregistered states even when they were
passed by name, removing the owning session's states without its prior
consent or knowledge! Even more troublesome, if the event is a result
of constructor failure, then the SocketFactory instance dies (and
deregisters the FailureState) before the failure event can be
delivered. The upshot is: Bind errors in samples/httpd.perl never
displayed an error message.

Randal Schwartz wanted examples of programs that used job queues, so I
banged out samples/queue.perl. Cleaning it up, documenting it, and
including it in the POE distribution took longer than writing it. :/

Updated the README to point to a new CPAN Testers location.

Added samples/tk.perl, in case anyone wants to try the Tk code in
POE::Kernel and POE::Session.


0.1002 2000.04.20
-----------------

Added t/05_macros.t to test POE::Preprocessor.

Split the event queue into a FIFO for plain state transitions and a
time-ordered priority queue for alarms. This puts POE one step closer
to coexistence with Tk and Event.

Tony Cook found and patched brokenness while defining mapped package
states with POE::Session->create.

Optimized POE::Kernel::run to reclaim the speed that was lost during
the queue split. Time::HiRes' presence is required to enable a big
part of the reclaimed speed, but POE will do its best without it. See
the FIFO_DISPATCH_TIME constant's comments for notes on tweaking
0.1002's performance higher than 0.1001's. :)


0.1001 2000.04.17 (!!!)
-----------------------

MJD pointed out (heh) that references have string/number magic like
$!. That is, they return just a number in numeric context, and in
fact they're are stored as numbers internally, so string context
wastes time making them look pretty in the first place.

Added POE::Preprocessor, a source filter for macro preprocessing,
constants, and enumerations.

Overhauled POE::Kernel's source. Commented just about everything.
Broke apart some monolithic subroutines. Replaced redundant code and
smaller internal subs with inline POE::Preprocessor macros.

Overhauled POE::Kernel's manpage SYNOPSIS. Made the formatting a
little neater. Made the parameter names a little clearer. Explained
what's going on in greater detail.

(!!!) Removed the silly and long-depreciated $kernel->session_create
method.

(!!!) Split the debugging constants between assertions which die
noisily and traces that show ongoing activity. Renamed them to
ASSERT_* and TRACE_* to reflect their function.

Added ASSERT_DEFAULT and TRACE_DEFAULT to change the defaults for
ASSERT_* and TRACE_*. These let programs turn everything on with one
or two statements.

Set ASSERT_DEFAULT to true in t/*.t so the tests are more thorough.

Documented the ASSERT_* and TRACE_* constants.

Added t/03_aliases.t to test session aliases.

Added t/04_selects.t to test filehandle watchers.

Overhauled POE::Session's source. Commented just about everything,
including the strange but true POE::Session->new() constructor.
Replaced redundant code and smaller internal subs with inline
POE::Preprocessor macros.

Overhauled POE::Session's manpage SYNOPSIS. Made the formatting a
little neater. Made the parameters a little clearer. Explained
what's going on in greater detail.

Optimized away the recursion for redirecting unknown states to
_default in POE::Session::_invoke_state. Programs that rely on
_default should run a bit faster without the extra function call.

Removed poing.perl from the samples directory. It had evolved into a
separate program in its own right. It's now available from the
author's page at <http://www.newts.org/~troc/poe-grams.html>.

Documented $kernel->fork() as experimental.

Added experimental postback features to POE::Session.

Un-depreciated $kernel->ID_session_to_id. While
$kernel->alias_resolve does the same thing, ID_session_to_id can be
faster when code expects to be working with session IDs.


0.10 2000.03.23 (!!!)
---------------------

Added POE::Component to the MANIFEST. Whoops!

Everything from 0.0901 through 0.0910 is included in this public
CPAN release. People using 0.09 should read through to see
what has changed, paying extra attention to the bits marked
incompatible.


0.0910 2000.03.09 (!!!)
-----------------------

POE now keeps track of the file and line number where an event was
generated. $session->option( default => 1 ) will report the line and
file, so you know where strange events came from.

(!!!) Add session ID to reference lookup from alias_resolve.
ID_id_to_session is depreciated. The incompatibility here is that
session IDs take precedence over aliases, so sessions shouldn't be
aliased to numbers.

(!!!) Depreciated ID_session_to_id, since alias_resolve does the same
thing. No warnings have been set yet, to give developers time to
react to the change. [This depreciation is rescinded in 0.1001.]

Tweaked the Win32 support to eliminate some redefined sub warnings.


0.0909 2000.03.10
-----------------

Removing closures in 0.0907 re-broke code that expect $wheel->event()
to take immediate effect. Changed the wheels to use references
instead of direct event names, so that anonymous coderefs could have
closures whose values can be changed from outside.


0.0908 2000.03.09
-----------------

Added logging to samples/poing.perl. Now it records up and down times
to a tab-delimited file.

Added POE::Kernel::select_(pause|resume)_write, to pause and resume a
write select without bothering to maintain POE::Kernel's reference
counts on the filehandle. Made POE::Wheel::ReadWrite use this instead
of POE::Kernel::select_write, which should improve performance a
little bit.

POE::Kernel::call was setting $! to 0 when it oughtn't. $! now
properly reflects the status of POE::Kernel::call.

Removed the place-holder test that suggested people try the samples
directory.

Added t/01_sessions.t to test sessions (new and inline create) and
basic events (post, yield and call);

Added t/02_alarms.t to test delayed events (alarm, delay, alarm_add
and delay_add).

Added POE::Kernel::(alarm|delay)_add to post additional alarms to a
particular state. Unlike POE::Kernel::(alarm|delay), these don't
clear existing alarms for the destination state.

Kicked off the POE::Component heirarchy with
POE::Component::Server::TCP (POE::Component is frequently abbreviated
as P::C in conversation but not in code).


0.0907 2000.03.02
-----------------

Revised Wheel::SocketFactory's internal states to eliminate closures
keeping instances from self-destructing at proper times. This would
keep socket factories alive after their last outside references were
removed.

Updated documentation for POE::Kernel::alarm()


0.0906 2000.02.20 (!!!)
-----------------------

(!!!) Revised Wheel::ReadWrite->put() to return true if the high
watermark is reached; false if it hasn't been. ReadWrite->put() may
return true without a corresponding high or low watermark event.

Changed samples/watermarks.perl to use ReadWrite->put()'s return
value, as well as the high and low mark states. Commented the program
while I was in it.

Adding the water mark code reintroduced the closure bug that was fixed
in version 0.0804. Now it is fixed. Yet again.

Changed how DEB_* are defined in POE::Kernel. It's now possible to
override the debugging constants before the first POE::Kernel use.
This lets programs have access to POE::Kernel's debugging code without
requiring programmers to find Kernel.pm and edit it.

Fixed POE::Session's debugging constant to work like POE::Kernel's.

Documented POE::Kernel and POE::Session debugging flags in the
corresponding manpages.


0.0905 2000.02.20
-----------------

Changed Wheel::ReadWrite's baaaaad $self to be a listref instead of a
hashref. It should run marginally faster without having to look
things up in a hash all the time.

Added statistics accessors to Driver::SysRW (it's the only one so
far), and added corresponding accesors to Wheel::ReadWrite.

Added HighState and LowState to Wheel::ReadWrite->event, so these
states can be redefined on the fly.

Documented Wheel::ReadWrite->set_(high|low)_mark; they weren't
documented up to 0.0904.

Expanded samples/poing.perl to accept different forms of host lines in
.rc files. Now accepts "host ip_address" or "host hostname" or "host
ip_address alias". It will look up the missing information when the
first two formats are used; it can totally bypass looking up names or
addresses when the last format is used. And aliases can be more
meaningful than host names.

EINPROGRESS isn't provided by ActiveState's POSIX module. It also
seems to be meaningless on MSWin32 systems. Since it's pretty
important for non-blocking connect() otherwise, I added a dummy
constant for it when POE is running on MSWin32 platforms. This
affects POE::Kernel and Wheel::SocketFactory, which should now
work better on Windows systems.

Added a watermarks test, samples/watermarks.perl.


0.0904 2000.02.16
-----------------

Replaced some lame hosts with some interesting routers in the
poing.perl sample. For values of lame and interesting. Added some
code to read configuration options from ~/.poingrc (or default to the
options after __END__) so I can change options to my heart's content
without annoying anyone.

Gabriel Kihlman <joshua.haninge.kth.se!gk> found a race in
SocketFactory's connect error detection. Changed the way errors are
detected during connection, removing an entire state in the process.
People from Connecticut should let me know if this is a problem. :)

Added a brief note about _signal and _default signal-handling
semantics in POE::Session, with a pointer to the more comprehensive
POE::Kernel signal discussion.

Separated alarms from plain events. Made the plain event queue FIFO;
the alarm queue time ordered. Posting and dispatching events should
be faster, since they would not need to binary seek and insert. This
turned out to be false, because the constant overhead of checking two
queues greatly offset any increased post/dispatch efficiency. Backed
this "optimization" out.

Benchmarked several different "switch" implementations, only to find
out that if/elsif/else is fastest anyway.

Added internal event types within POE::Kernel. The only thing anyone
will ever notice is a little better performance.

Fixed POE::Kernel->alarm() and POE::Kernel->delay() to make use of the
new internal event types. Now these two functions can only discard
alarm events. Documented the change.

Added POE::Kernel::queue_peek_alarms, which returns the pending alarm
events queued for the current session.

Updated samples/signals.perl to display pending alarms.


0.0903 2000.02.08 (!!!)
-----------------------

Put the incomplete, experimental Win32 code back. It appears to have
been working all along! Please note, this is only for making
filehandles non-blocking; it doesn't fix signals or fork or anything.

Add Artur's high/low watermark patches to Wheel::ReadWrite. This is a
higher level watermark than previous patches, and it's not confined to
a particular driver (which is moot at this point, since there's only
one driver). It implements high- and low-water callbacks instead of
performing its own flow control. Documented them but didn't include a
watermark sample in this release. A sample will be in by 0.10.

(!!!) Changed drivers' flush() and put() methods' return values. They
now return pending octets instead of objects. ReadWrite's water marks
rely on this to make the marks meaningful. Updated documentation.

Changed Driver::SysRW's internal object from a hashref to an listref.
This is a minor micro-optimization, which may offset the
micro-pessimization introduced during octet counting.


0.0902 2000.02.07
-----------------

Removed an underscore from the last change's version number in
Changes. :)

Abigail found a stupid bug in POE::Session->create's mishandling of
object_states. Patch received and applied; testcase added to
samples/create.perl; bug fixed.


0.0901 2000.02.07
-----------------

Added InputFilter and OutputFilter to POE::Wheel::ReadWrite's
constructor parameters. This allows a ReadWrite wheel to use
different disciplines for input and output.

Added &set_input_filter and &set_output_filter to
POE::Wheel::ReadWrite. Now &set_filter changes both the input and
output filters. &set_input_filter and &set_output_filter alter
individual filters independent of the other.

Fixed samples/fakelogin.perl to test changing individual filters.

Changed a bunch of diagnostics to print $session->ID instead of
$session. Debugging will be slower (that's debugging for you), but it
will also be friendlier. Everybody needs a friend while debugging,
right?


0.09 2000.01.25
---------------

Updated README with: new mailing list instructions, Windows
compatibility notes, removed POE2 notice.

All promises regarding the 0.09 feature/patch set have been met, and
the Changes since 0.08 are perhaps too long. Bump the version to 0.09
and prepare for a CPAN release.


0.0808 2000.01.24
-----------------

0.0806 broke Filter::Reference; fix it, and move the inclusion of
Compress::Zlib to runtime. Now there's no startup penalty for people
not using Zlib.


0.0807 2000.01.24
-----------------

Fix the release date for 0.0806 in the Changes file.

&Session::ID was removed for testing and never put back. Put... the
function... BACK!


0.0806 2000.01.24 (!!!)
-----------------------

Added the ability to compress referenced data passing through
Filter::Reference. This doesn't break backward compatibility, but it
may mean strange behavior if both ends of a Filter::Reference
connection don't agree on the compression mode.

Added the ability to map package and object states to methods that are
named differently. This adds new syntax to POE::Session's new() and
create() constructors, as well as POE::Kernel->state(). The new test
in samples/objmaps.perl exercises the code.

(!!!) The ability to map package and object states to methods has
uncovered a problem with POE::Session->create's object_states
parameter. This previously accepted a hashref, which stringified the
object references. Now it requires an array reference instead. The
package_states parameter is also expected to be an array reference
now.

There seems to be renewed interest in Win32 support. The previous
Win32 porting attempt was about a year ago, and it was never completed
or tested. Since it's been so long, I've removed the code on the
assumption that a fresh start is better. Patches welcome!

Added UDP support to SocketFactory. This involved rewriting
&SocketFactory::new to be partially data driven; now it should be
easier to add new protocols and families.

Added UDP testing to samples/socketfactory.perl.

Addi found a bareword warning in samples/udp.perl; I renamed
$heap->{socket} to $heap->{socket_handle} to avoid it.

Michael Stevens (mstevens) found another $heap->{socket} bareword
warning in samples/poing.perl.

mstevens also reminded me that samples/poing.perl is running as root;
I added a -T switch to the #! line. If poing.perl dies with a ``Too
late for -"t" option'' message, then you'll have to either remove the
-T from the #! line (not recommended) or run the script as:
/usr/bin/perl -T poing.perl

And mstevens pointed out that using -I.. on the #! line is a problem
in some Perl versions where POE otherwise runs fine. I replaced the
-I.. switch with "use lib '..';", and things should be a lot happier.

And his ROWS and COLS environment variables really are LINES and
COLUMNS. I fixed samples/poing.perl to recognize the alternate
environment variables and punt to 80 columns and/or 25 lines as a last
resort.


0.0805 2000.01.05
-----------------

Added a getsockname() method to SocketFactory. This is used to find
out which address and/or port a listening SocketFactory is bound to.
Great for servers that create dynamic listening sockets, like DCC and
FTP.

Added code to samples/socketfactory.perl to display bind addresses
using $wheel->getsockname().

Made some minor cosmetic changes to SocketFactory. This was to be a
clean rewrite of SocketFactory's internals so they could support new
protocols (like UDP), but time ran out.

Added samples/udp.perl to show how UDP sockets fit into the scheme of
things. It's also to get me in the mood to support other protocols in
SocketFactory.

Fixed POE.pm's documentation to include new tests and samples. These
are poing.perl (multi-host ping); udp.perl; and wheels2.perl
(two-handle ReadWrite).

Barring problems [crosses fingers], 0.0805 will be the last subversion
before 0.09. SocketFactory revisions should appear in 0.0901.


0.0804 1999.12.31
-----------------

Reinstated the closure optimizations in the wheels. They were removed
in version 0.0703. It turns out that the closures are necessary to
prevent wheels from holding extra copies of their $self references.
The extra $self references kept them from self-destructing (Har!) in
Flushed states. These closures work better than 0.0702's.

Wheel::FollowTail now wraps its seek() calls in eval blocks, in case
the tail being followed belongs to a pipe or otherwise unseekable
file.

Cleaned up some ugly style in the places where things changed. Made
some other style ugly.


0.0803 1999.12.28
-----------------

Incorporated Kevin Lenzo's patch for Wheel::ReadWrite's support of
separate input and output filehandles.

SocketFactory's SuccessState and FailureState parameters can take
coderefs instead of state names, for quick one-off states and closure
tricks. If this works and is generally useful, I'll add the feature
to other wheels.

Updated SocketFactory to return the remote address and port for
connecting sockets as well as accepted ones. Updated the
socketfactory.perl sample program to display them.


0.0802 1999.12.25
-----------------

Fixed the date for revision 0.0801 in the changes.

Added Kernel and Session IDs, at Philip Gwyn's insistence. Each
session has a serial number, accessible by $session->ID(). POE's
kernel itself has a fairly unique ID, accessible by $poe_kernel->ID().


0.0801 1999.12.24
-----------------

Added &POE::Kernel::fork() to provide safe child reaping. This fork()
uses an event loop to poll for reapable children. It fires a CHLD
signal at the session that called &POE::Kernel::fork(), using POE's
soft signals to avoid potential problems with Perl's signal handling.

Changed the preforkedserver.perl example to use &POE::Kernel::fork(),
but the sample program seems to be hideously broken as designed.

POE's SIGCHLD handler takes over Apache's when it's used in mod_perl.
Changed POE::Kernel to not register a SIGCHLD handler if it's running
under mod_perl.

Added SIGIDLE, a kinder, gentler SIGZOMBIE. When an entire process
becomes idle, POE broadcasts SIGIDLE to everyone. SIGIDLE is a plain
terminal signal; sessions won't die if it's handled. POE checks for
continued idle-ness after SIGIDLE is dispatched; if the process hasn't
awakened, then SIGZOMBIE is broadcast to reap things.

Fixed names.perl to show SIGIDLE being caught.

Reordered the lookups in &POE::Kernel::alias_resolve, placing the more
common ones first. Forced a look-up, even for Session references, so
that it would return ESRCH errors on sessions that disappeared but
were still being referenced.


0.08 1999.11.26
---------------

John Labovitz <watchguard.com!johnl> submitted a patch to change
Driver::SysRW's read block size. He also pointed out that
Filter::Reference prefers to use freeze() instead of the more portable
nfreeze(). I applied a modified version of his block size patch, and
I changed Filter::Reference to prefer nfreeze().

There have been no complaints with the 0.07_xx subversions, and they
contain useful changes, so the version is bumped to 0.08.

Mentioned the "POE2" project in the README file.

Added an undocumented command line switch to samples/poing.perl that
specifies the maximum number of hours to run.

Changed the small/large queue limit for POE::Kernel::_enqueue_state
from 32 to 8.

Removed the hard requirement for optional modules: Storable;
Time::HiRes; HTTP::Request; HTTP::Response; HTTP::Status; URI::URL.
These aren't mandatory for basic POE things.


0.0704 1999.11.14
-----------------

Include some modules that were mistakenly left out of 0.0703.


0.0703 1999.08.20
-----------------

Removed closure optimizations from the Wheel classes. The later
addition of $wheel->event() subtly broke them.

Added poing.perl, a multi-host ICMP ping program, to the samples
directory. My ISP was down, so I hacked this together, "borrowing" a
lot of code from Net::Ping. As such, it's neither friendly to
configure nor commented.

Sessions' "default" option didn't confess, contrary to the
documentation.


0.0702 1999.07.30
-----------------

Made BindAddress optional for UNIX client sockets. It's still
required for server sockets. Updated the documentation for the
change, fixed some typos, and included PF_INET and PF_UNIX.

Changed POE::Kernel::_enqueue_state from a linear search to a binary
search, but only if there are 32+ events in the queue. Smaller queues
are still searched linearly, on assumption that it's quicker because
there's less overhead.


0.0701 1999.07.01
-----------------

Fixed a race or TCP/IP stack problem in SocketFactory. SocketFactory
was firing a "connect error 0" if the server side sent data
immediately. The problem was tested on four systems: Linux (broke);
Solaris (broke); FreeBSD (worked); OS/2 (worked). Go figure. It
should work on all four now.

Modified POE::Filter::HTTPD to respond with the protocol version
(hardcoded to 1.0). The wget utility had a problem with 'HTTP ...',
and I assume it won't be the only thing to.

Replaced a regular expression in POE::Filter::Reference with a
substr() call. The regexp was used to frame input streams, and large
structures (over 32KB) were not being framed correctly. This was
fixed in a previous version, but the fix was reverted for some reason.
The new &get method code also supports 0-byte blocks, which is
pointless for a Reference filter, but lets you use Reference as a
"reference" for other variable-length block filters. :)


0.07 1999.06.18 (!!!)
---------------------

Revised the new manpages based on reader feedback.

Bumped the version number to 0.07 and released it to the CPAN. This
version contains all the changes, including one minor interface
change. It's that change that warrants the (!!!) icon, so don't
panic. This is NOT another 0.05 -> 0.06 API changefest of pain.


0.0609 1999.06.15 (!!!)
-----------------------

Updated samples/*sessions.perl to test $kernel->state(...) and
discovered that the documentation was wrong about this function.
Thanks, Artur, for pointing this out.

Fixed the documentation for $kernel->state(...) with regards to
package and object sessions.

Made POE::Session an array reference, as part of the reorganization of
POE's internals.

Revised all the manpages. Split the manpages into separate PODs, and
put them at the end of each module. Rewnote the POE.pm overview,
added some ASCII art, and threw away the "Design Goals" and related
hype. Removed POE-TODO and POE-HINTS manpages.

Updated the README to be more readable. Moved the mailing list and
web site information there. Should either or both change, stale
information won't rot in a thousand manpages around the world.

Removed design notes from the ends of Kernel and Session, because docs
go there now. Moved them to POE-TODO, which is now not included.

&POE::Session::create was broken-- I'm not sure how it worked to begin
with. Fixed.

Revised the POE::Filter::HTTPD documentation to follow the rest of the
manpages' format.

(!!!) Minor interface change. &POE::Session::option can now fetch
session option values without changing or deleting them in the
process.

Changed $VERSION in POE.pm to not preserve the version's underscore.
This changes the archive name format, so I'll start referring to
versions without the underscore. Joy.


0.06_08 1999.05.30
------------------

Begin reorganizing POE development. The tests/ subdirectory is now
samples/.

Added POE-HINTS documentation.

Added POE::Curator, POE::Ojbect and POE::Runtime classes. These
implement the start of the heretofore "Mythical" Object Layer.

Added samples/olayer.perl to test the current Object Layer features.
The object layer is in early development, so there's no documentation
outside the olayer.perl comments.

Applied Philip Gwyn's serialization patch to Filter::Reference. Added
his serialization test as samples/ref-type.perl. Updated
documentation for Filter::Reference to match patch.

Applied Philip Gwyn's updated patches for hot-swappable filters.
Added his filter swapping test as samples/filterchange.perl. I have
much more confidence in this now that it's tested.

Updated documentation to point to the samples/ directory.

Fixed t/test.t to point to the samples/ directory.

Made dist on a FreeBSD system, so the permissions should be correct.


0.06_07 1999.05.12
------------------

"Crunch time" is sort of over. An emergency in April put everything
on hold. I had a lot of time away from working on POE, and I came
back refreshed and with some funky new ideas. Unfortunately, it sort
of ruined my plans for releasing 0.07, and 0.07 is delayed until I
move development over to CVS.

&POE::Kernel::post() now returns undef for error. The "success"
return value currently is 1, but this may change. It's better right
now to check for definedness as success. On error, $! will be set as
per &POE::Kernel::alias_resolve().

&POE::Kernel::call() has improved return values, similar to &post's.
See the docs.

&POE::Session::create is a new constructor, with some type checking.
It uses a completely different call signature. See the docs.

Philip Gwyn's patches for hot-swappable filters are in. They are
highly experimental and untested. No guarantees, not even that
they'll exist in future releases. Feedback would be appreciated.


0.06_06 1999.04.28
------------------

Added some defaults to SocketFactory: SocketDomain => AF_INET,
SocketType => SOCK_STREAM, SocketProtocol => 'tcp' (for INET sockets).

Changed SocketFactory semantics. On Artur's insistence, SocketFactory
now uses RemoteAddress to determine the difference between connecting
and listening sockets. ListenQueue now defaults to SOMAXCONN. This
should not break existing programs.

The tests/*.perl programs have been updated to use SocketFactory in
recommended ways.

Added STATE to state (event handler) parameters.


0.06_05 1999.03.23
------------------

Wheel::ReadWrite would sometimes not fire an error event; fixed.

Added PREREQ_PM to Makefile.PL. Theoretically, CPAN.pm will
automagically install all POE's prerequisites now. For completeness,
PREREQ_PM requires more than basic POE does.


0.06_04 1999.03.17
------------------

Entering "crunch time" for the 0.07 release. Expect a lot of quick,
small-fix releases.

Fixed documentation bug. It said FROM instead of SENDER.

POE::Session and POE::Wheel::* check for a POE::Kernel reference as
the first parameter. This will detect old code and croak with better
error messages.


0.06_03 1999.03.17
------------------

Incorrect parameters to &POE::Session::new could cause an infinite
loop. Fixed.

Depreciated posting/calling $_[HEAP] instead of $_[SESSION].

Allow posting to stringified session references.

Sessions will carp on invalid states, if their 'debug' option is set
and they do not have a _default state registered.

Added an event() method to the wheels. This lets programs change the
events they emit without having to destroy them outright and create
replacements.

Allow packed addresses in SocketFactory's parameters.

Documented the mailing list.

Fixed a race error in tests/proxy.perl. It would die if the client
sent information before the server connection was made.


0.06_02 1999.02.20
------------------

Fixed POE documentation to stop being silly about => "stringifying"
things that it's not. Sorry about that.

Updated tests/proxy.perl to queue data sent by the client before the
server connection is fully established. Previously, the proxy would
try to call SocketFactory::put, and the proxy would die. Whoops!

Updated SocketFactory to fail on unresolved hostnames. Previously it
was relying on undef from Socket::sockaddr_in; now it checks the
inet_aton results.

Updated SocketFactory to generate FailureState on failure to connect.

Replaced SocketFactory's hard failures with FailureState events.

Fixed proxy.perl; it wasn't registering the proxy/server ReadWrite
wheel properly.

Assigned EADDRNOTAVAIL to $! if inet_aton fails in SocketFactory. I
assumed inet_aton (gethostbyname, too) touch $! on failure. Wrong!


0.06_01 1999.02.16
------------------

Added Kernel::session_create, a semantically sweeter version of C<new
POE::Session>, for people who prefer to think this way.

Added check for pre-packed INET addresses in Wheel::SocketFactory.
Previously it would try to inet_aton() them.

Added check for stringified session references in
Kernel::alias_resolve. Now you can post/call to hash keys.

Added the event() method to existing POE::Wheel classes. Now events
can be changed without destroying old wheels and creating new ones.

Made state redefinition warnings optional. They will not appear
unless a session's 'debug' option is set.

Added tests/fakelogin.perl to test the event() method for ReadWrite.
The other wheels' event() methods are untested. If they're broken,
let the author know.

Split the TO-DO list out of the main POE.pm file.


0.06 1999.02.03 (!!!)
---------------------

This is a public CPAN release. It incorporates all the changes since
version 0.05.


0.05_57 1999.02.02 (!!!)
------------------------

(!!!) Renamed POE::Session::debug() as POE::Session::option(), per
feedback from testers. This changes the original "_debug" semantics
into something like environment variables for sessions.

The ReadWrite wheel's InputState is optional. This allows for
write-only wheels, which are good for writing logs. The
followtail.perl test has been updated to use such a wheel for its log
writer sessions.

The FollowTail wheel now has an optional PollInterval parameter, which
tells how long to wait (in seconds) between checking the file for new
data.


0.05_56 1999.02.02
------------------

Crimson found the real cause of Perl's coredumps, which allowed the
0.05_54 change to be rolled back.


0.05_55 1999.02.01
------------------

(!!!) SIGWINCH is unsupported until Perl and/or POE implements safe
signals. This signal was causing Perl to crash on xterm resizes.

(!!!) Sessions' "_debug" variables have been removed. Instead,
POE::Session now has a debug() method. This removes the _debug heap
pollution, and allows for several per-session debug flags.


0.05_54 1999.01.30
------------------

Backed out the change in 0.05_04 where wheels call their event
handlers directly. This causes some sort of stupid closure or
destructor trick (we're still not sure which) that makes perl SEGV on
some systems.


0.05_52 1999.01.27
------------------

Added Win32 support for non-blocking sockets. Unfortunately, the
Win32 port's select() doesn't appear to support regular files, so POE
is virtually useless for non-blocking filesystem work. On the plus
side, sockets seem to function very well. Thanks to Sean Puckett
(catbear) for tracking this down.


0.05_04 1999.01.15 (!!!)
------------------------

Fixed Reference.pm again. Storable's nfreeze is portable across
networks and faster than FreezeThaw, so it's preferred. Thanks to
Artur Bergman for pointing this out.

(!!!) Changed _child parameters. $from is always the kernel. ARG0 is
either 'gain' if the parent is being given a child; 'lose' if its
child is being stopped; or 'create' if the new child was created by
this session. ARG1 is always the child session's reference. For
created sessions, ARG2 is the return value from the child's _start
event handler.

(!!!) Changed _parent parameters. $from is always the kernel; ARG0 is
the old parent session; and ARG1 is the new parent session.

(!!!) Changed event handler parameter order, and introduced a way to
avoid future changes in the parameter order from breaking
compatibility.

Updated tests/*.perl examples to work with the new scheme of things.
Added comments, and generally cleaned things up.

Sessions' _start events may now include parameters. The selects.perl
test is the first program to use this.

Wheels now call event handlers directly instead of posting events.
This should make things substantially faster.

(!!!) Changed filters' return values, to make them more compatible
with block and datagram protocols. Most people won't notice the
difference, but this will break compatibility for Filter and Driver
writers.


0.05_03 1999.01.14 (!!!)
------------------------

Fixed Kernel select dispatching. Changing $_ in event handlers would
cause a fatal error.

Fixed Reference.pm. Frozen references were not being thawed correctly
under two conditions: If packet boundaries split them in certain
places, and later if they contained \n. Thanks to sky and a-mused for
finding this one.

(!!!) Fixed Kernel.pm signal handlers. The kernel now waits on
SIGCHLD and only generates a CHLD signal event if the child PID is 0
or more. The CHLD signal now includes the PID and $? as parameters.
The only programs that break are ones that explicitly wait. It also
always generates SIGCHLD/SIGCLD events as "CHLD" to simplify handlers.

Fixed Kernel event dispatching so that events generated by select() no
longer outpace Kernel::run's ability to dispatch them. Thanks to Dave
Paris for finding this.

Fixed SysRW.pm to flush as much data as possible all at once. This
should reduce events and overhead when sending a lot of data. Thanks
to Dave Paris for pointing this out.

Added new tests.


0.05_02 1999.01.12 (!!!)
------------------------

Fixed signals. Now runs garbage collection on sessions after
execution returns from non-terminal signal handlers.

Fixed README, Changes, etc. to be more readable. I hope.

Added tests/thrash.perl to check for memory leaks and benchmark
"performance".

(!!!) Changed "exception" to "expedite", with regard to Kernel select
functions.

The thrash.perl results look pretty bad, and DProf blamed IO::Select,
so out it went.

Revised internal data structures to be more efficient.

(!!!) Removed support for multiple kernels, each to its own thread.
See the 0.05 SIGPIPE notes.

Rewrote documentation. Split it from individual packages, and placed
it into its own pod file.

Added return values for Kernel::alias_* functions.

Localized $SIG{'__DIE__'} in "harmless" evals.

Inlined Kernel::_kernel_select().

Added Artur Bergman's support for "package" sessions, and
packagesessions.perl test.

(!!!) Fixed Filter::Line::put() to treat @_ as an array of lines.
This brings Filter::Line::put() into agreement with the documentation.

Added Filter::Stream, a "null" filter that passes data through
unchanged.

Added Kernel::yield.

Removed IO::Handle dependencies in the Kernel. Now it will work with
plain old files as well.

Added return values for Kernel::state.

Created Wheel::SocketFactory, a replacement for IO::Socket::INET (tcp
only so far) and IO::Socket::UNIX. All it does in create sockets,
though... the sockets don't have IO::Socket-style methods.

Made FreezeThaw the default for Filter::Reference, and issued a
mandatory warning if Storable is used. Objects frozen with Storable
are not thawable on different-endian systems.


0.05 1998.12.04
---------------

Delayed garbage collection on new sessions. Previously, sessions
would be tested for garbage collection immediately after creation.

Fixed a fatal bug in tests/proxy.perl. Added ability to redirect
multiple ports. Added more logging information.

Fixed SIGPIPE handling. Previously, SIGPIPE would be dispatched to
every Session. Now it is dispatched directly to the session that was
running when the signal occurred. This probably breaks multithreaded
programs that contain multiple kernels, and I am considering dropping
multi-kernel support.

Fixed SIGRTMIN handling. At least one system has this signal defined
in %SIG but doesn't support it. Assigning to $SIG{'RTMIN'} there
causes an "Attempt to free unreferenced scalar" warning, and the test
program hangs. POE now skips RTMIN and RTMAX when assigning handlers.

Added Filter::Reference, contributed by Artur Bergman
<artur@vogon-solutions.com>. Filter::References enables POE to pass
copies of referenced data between processes. It requires C<Storable>
or C<FreezeThaw>.

Fixed Wheel::ReadWrite::put(). It used to send a concatenated version
of @_ to its driver. This broke Filter::Reference when putting a list
of references. Now it's up to respective Filter classes to do the
right thing with @_.

Fixed Wheel::ReadWrite. Now it sends FlushedState events when it
should.


0.04 1998.11.24
---------------

Added $object->can($state) check when registering object methods as
states/event handlers.

Added Session aliases (symbolic references). See tests/names.perl for
an example.

Added Kernel::signal($session, $name). This sends signals directly to
POE::Sessions or POE::Kernels without going to the operating system
(which would send the signal to every kernel and session). The
signals.perl test has been updated to test this.

Added Kernel::call(). Takes the same parameters as Kernel::post, but
dispatches the state/event immediately. Returns whatever the event
handler did. The sessions.perl test test has been updated to test
this.


0.031 1998.11.24
----------------

Added tests/objsessions.perl to the manifest. D'oh!


0.03 1998.11.23
----------------

Added new constructor syntax to POE::Session. It's now possible to
say: new POE::Session($kernel, $object, \@methods). See
tests/objsession.perl for an example.

Removed an unnecessary function call in Kernel.pm.

Rearranged Changes so the most recent ones come first.


0.02 1998.11.22
----------------

Rewrote signals. Signals now propagate from parent to child sessions.
"Terminal" signals now only kill sessions that don't otherwise handle
them.

Added subsecond resolution for alarms if Time::HiRes is available.
See the docs for POE::Kernel::alarm().

Added POE::Kernel::delay() for "time() + $seconds" alarms. Uses
Kernel's time(), which may be from Time::HiRes.

Parent sessions will now wait around until all child sessions finish,
unless they're explicitly killed off.

Fixed a blessing bleed that caused implicitly returned objects to die
in the wrong scope (confounding resource management).

Added tests/proxy.perl, a simple line-based proxy example.


0.01 1998.08.15
----------------

Initial release. Implemented Kernel, Session, Wheel, Driver, Filter.


- EOF: Thank you for reading. -
Something went wrong with that request. Please try again.